I want a while loop with increment of 10 without repeating the starting number in python. This is what i have done, and the result i am getting, I have written the required result below for further clarifications. Thank you.
limitstart = 0
limitend = 0
while limitstart < 55:
limitstart = limitend
limitend = limitstart + 10
print (limitstart)
print (limitend)
print ("new batch")
This is my result.
0
10
new batch
10
20
new batch
20
30
new batch
30
40
new batch
40
50
new batch
50
60
new batch
new batch
60
70
new batch
The result i want is :
1
10
new batch
11
20
new batch
21
30
new batch
31
40
new batch
41
50
new batch
51
55
for number in range(0, 71, 10):