Python 3 Script to Print Numbers in a Range Without Loops Full Project For Beginners


Welcome folks today in this blog post we will be printing numbers in a range without loops in python All the full source code of the application is shown below.




Get Started




In order to get started you need to make a file and copy paste the following code



def print_num(lower, upper):
    if(upper + 1 > lower):
        print_num(lower, upper - 1)

lower = int(input("Enter lower limit: "))
upper = int(input("Enter upper limit: "))

print_num(lower, upper)

Leave a Reply