Python numbering in every run with counter

Viewed 10

I'm trying to create a python script with a counter, When there is a starting number for example 100, and every time the script runs the number will increase by one, For example: The variable is number 10 The script runs once, the number 10 is printed, After that, the script runs a second time, the number increased to 11 and 11 is printed, Then after another run it goes up to 12 and so on

for i in range(5):
    if range== previous:
        count +=1
return count
print(i)
0 Answers
Related