print 1to 10 number without using loop in python

Solutions on MaxInterview for print 1to 10 number without using loop in python by the best coders in the world

showing results for - "print 1to 10 number without using loop in python"
Irene
31 Feb 2018
1def printno(upper):
2    if(upper>0):
3        printno(upper-1)
4        print(upper)
5upper=int(input("Enter upper limit: "))
6printno(upper)