use of for in python code example Example: python for loop for i in range(3): print(i) #prints: 0,1,2