simple python for loop print 1 to 5 code example Example: python for loop range for i in range(0, 3): print(i)