My code:
for i in range(0,10,2):
print (i)
i=i-1;
output
0 2 4 6 8
Press any key to continue . . .
If we decreases value of for i then it is not reflected on for loop why..?
My code:
for i in range(0,10,2):
print (i)
i=i-1;
0 2 4 6 8
If we decreases value of for i then it is not reflected on for loop why..?