Since you commented on the post the other day, I immediately made use of my reflection I will do my best to continue the reference book (while googled (´Д`))
By the way, I don't know the for sentence, but while moving the previous comment with copy
I adjusted it.
If it is a while statement
str = '#####' i = 5 while i > 0: ... slice = str[:i] ... print(slice) ... i -= 1 ...
What do you think?
I will continue next time.
Recommended Posts