In this video, you will learn how to use the for loop in Python to iterate through items in a sequence.
The Python for loop executes a block of code once for each item in an iterable, such as a list, tuple, string, set, dictionary, or range.
Syntax
python
for variable in iterable:
code to execute
Example
python
fruits = ["apple", "banana", "orange"]
for fruit in fruits:
print(fruit)
Using a Range
python
for number in range(5):
print(number)
The for loop is useful for processing each item in a sequence without manually accessing every item.
My Udemy Courses
https://www.udemy.com/user/mousa-al-s...
Learn data analytics from scratch with practical tutorials on SQL, Python, Power BI, and Excel, designed for beginners and career switchers.
Simple, project-based lessons to help you become a job-ready data analyst step by step.
My Udemy Courses
https://www.udemy.com/user/mousa-al-s...
Welcome to Data by Mousa (English) – your space to learn data analytics from scratch with clear, practical tutorials.
On this channel, you’ll learn how to work with the core tools every data analyst needs:
SQL for querying and understanding data
Python for data analysis and automation
Power BI for dashboards and interactive reports
Excel for data cleaning, analysis, and quick insights
The content is designed for:
Beginners who want to start a career in data analytics
Employees who want to use data in their daily work
Students who want practical, project-based learning beyond theory
You’ll find:
Step‑by‑step tool tutorials (SQL, Python, Power BI, Excel)
Full courses organized in playlists (from basics to projects)
Realistic data projects to build your portfolio
Tips, best practices, and mindset for thinking like a data analyst
If you want to go from “I don’t know where to start” to “I can analyze data, build dashboards, and answer business questions,” subscribe and follow along with the lessons.
New videos focus on clear explanations, real examples, and skills you can use immediately in your work or studies.
On this page of the site you can watch the video online 7 - How to Use the for Loop in Python using For Loop | Python Course | Data by Mousa with a duration of hours minute second in good quality, which was uploaded by the user Data by Mousa 15 August 2026, share the link with friends and acquaintances, this video has already been watched 3 times on youtube and it was liked by 0 viewers. Enjoy your viewing!