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