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 app.py file and copy paste the following code

 

 

app.py

 

 

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

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

print_num(lower, upper)

Leave a Reply