python simple loop code example Example: python for loop n = int(input("All numbers in given range")) for i in range(n): print(i)