[Solved] How to use while loop and range in python? [closed]
[ad_1] You do not need to cast the int in your line number 1. Change this: x=int(10000) to this: x = 10000 Your code is fine, if the intention is to print the original value inside the loop and the last value i.e. 0 after the iterations, you need to print the current value afterwards. … Read more