[Solved] Python 2.7.14 ,code not working [duplicate]

Introduction

Solution


Try this,

n = int(input("enter any number"))
for i in range(1,n+1):
    print i,

Use Indentation.