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 <[email protected]> Namens 
[email protected]
Verzonden: zondag 26 januari 2020 18:00
Aan: [email protected]
Onderwerp: Python-list Digest, Vol 196, Issue 26

Send Python-list mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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

Reply via email to