How to reverse this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
27th May 2020, 4:55 AM
AadeSh Vishwakarma
AadeSh Vishwakarma - avatar
4 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")
27th May 2020, 5:12 AM
ChaoticDawg
ChaoticDawg - avatar
+ 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.
27th May 2020, 5:33 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Thank you ChaoticDang your code is very helpful for me
27th May 2020, 5:26 AM
AadeSh Vishwakarma
AadeSh Vishwakarma - avatar
0
Thank you very much
27th May 2020, 5:22 AM
AadeSh Vishwakarma
AadeSh Vishwakarma - avatar