[Solved] How to use while loop and range in python? [closed]
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…