Feb-01-2018, 06:03 PM
What's the meaning of this code? Could someone please explain this to me? Thanks!
What's the relationship between the number and i?

temp = input('Please enter a number:') number = int(temp) i = 1 while number: print(i) i = i + 1 number = number - 1I could write the first two lines but the later on of i = i +1 & number = number -1
What's the relationship between the number and i?