0

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..?

woockashek
  • 1,588
  • 10
  • 25
Adhir ch Mondal
  • 9
  • 1
  • 1
  • 5

0 Answers0