+ 1
How to reverse this code?
8 Answers
+ 5
Sticking to a similar idea of the posted code, you can do this;
x = "*******"
while x >= "*":
print(x)
x = x[:-1]
print("finished")
+ 5
There are many implementations you can use. I suggest that you pick one that you understand how it works so that you can describe it and feel confident in your understanding, but also challenge yourself to learn how the more complex implementations work and until you understand them as well.
+ 1
Thank you ChaoticDang your code is very helpful for me
0
Thank you very much