Welcome to the Python Beginner Series.
In this video, we will learn how to use the for loop in Python with two simple examples. We will write a Python program to print even numbers from 1 to 20 and another program to generate a multiplication table.
This tutorial is designed for beginners who are starting to learn Python programming step by step.
Programs Covered in this Video
1️⃣ Print Even Numbers from 1 to 20
print("Even numbers from 1 to 20")
for i in range(2, 21, 2):
print(i)
2️⃣ Multiplication Table using for Loop
n = int(input("Enter a number: "))
for i in range(1, 11):
print(n, "x", i, "=", n*i)
In this video you will learn:
How the for loop works in Python
How to use the range() function
How to print even numbers using loops
How to create a multiplication table using Python
This video is part of the Python Beginner Series, where we learn Python programming .
#Python
#PythonForBeginners
#LearnPython
#PythonForLoop
#PythonProgramming