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