How give a ceratin value to iterator

  for-loop, python, python-3.8

for i in range(9):
print(i)

What to do to ‘i’ so that on second iteration instead of taking value ‘1’ it will take ‘3’

I tried doing this

for i in range(9):
print (i)
i=i+2
But it’s still printing same till 9

Source: Python Questions

LEAVE A COMMENT