how to iterate with step in python code example Example: python for loop with step for i in xrange(0,10,2): print(i)