Dremendo Tag Line

Print first 20 natural numbers in reverse order using for loop in Python

for Loop - Question 2

In this question, we will see how to print the first 20 natural numbers in reverse order in Python programming using for loop. To know more about for loop click on the for loop lesson.

Q2) Write a program in Python to print the first 20 natural numbers in reverse order using for loop.

Program

for i in range(20,0,-1):
    print(i)

Output

20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1 
video-poster