Python-list Digest, Vol 196, Issue 26
Francois van Lieshout
FvLieshout at outlook.com
Mon Jan 27 01:10:12 EST 2020
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..."
More information about the Python-list
mailing list