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