how to creat series of numbers (format) starting with zero in for loop

P

Pavan

Guest
for loop need to print numbers (not in a string format) like 05 06 07 08 09 10 11

print(format(5, '02d')) '05'

I need to generate number (not string) in for loop

for i in range(int(format(5, '02d')),10): print(i)

The following code is printing 5 6 7 8 9 instead 05 06 07 08 09

Continue reading...
 
Top