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