1# basic for loop 2 3def f(): 4 for x in range(2): 5 for y in range(2): 6 for z in range(2): 7 print(x, y, z) 8 9f() 10 11# range with negative step 12for i in range(3, -1, -1): 13 print(i) 14 15a = -1 16# range with non-constant step - we optimize constant steps, so this 17# will be executed differently 18for i in range(3, -1, a): 19 print(i) 20