[Solved] Python 2.7.14 ,code not working [duplicate] April 27, 2023 by Kirat Introduction Solution Try this, n = int(input("enter any number")) for i in range(1,n+1): print i, Use Indentation.