git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python-list Digest, Vol 196, Issue 26


Please don't reply to digest.
????
uri at speedy.net


On Mon, Jan 27, 2020 at 8:11 AM Francois van Lieshout <
FvLieshout at outlook.com> wrote:

> for x in range( 0,10 ):
>     stars = ""
>     count = 0
>
> while count < x:
>     stars += "x"
>     count += 1
>     print( stars )
>
> x
> xx
> xxx
> xxxx
> xxxxx
> xxxxxx
> xxxxxxx
> xxxxxxxx
> xxxxxxxxx
>
> You've got already an "x" placed in your variable stars that's why.
>
>
> -----Oorspronkelijk bericht-----
> Van: Python-list <python-list-bounces+fvlieshout=outlook.com at python.org>
> Namens python-list-request at python.org
> Verzonden: zondag 26 januari 2020 18:00
> Aan: python-list at python.org
> Onderwerp: Python-list Digest, Vol 196, Issue 26
>
> Send Python-list mailing list submissions to
>         python-list at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
>         python-list-request at python.org
>
> You can reach the person managing the list at
>         python-list-owner at python.org
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of Python-list digest..."
> --
> https://mail.python.org/mailman/listinfo/python-list
>