Python Program to Print First 10 Even Natural Numbers

Write a Python program to print first 10 even natural numbers using for loop.

print("====The First 10 Even Natural Numbers====")

for i in range(1, 11):
    print(2 * i)
Python Program to Print First 10 Even Natural Numbers

This Python program displays the first 10 even natural numbers using a while loop.

print("====The First 10 Even Natural Numbers====")

i = 1
while(i <= 10):
    print(2 * i)
    i = i + 1
====The First 10 Even Natural Numbers====
2
4
6
8
10
12
14
16
18
20