A loop is a fundamental concept in all programming languages, not just Python. Loops are used to repeat a certain block of code.
🔥 Want to learn Python, the right way? Get my interactive Python course: https://bit.ly/right-python
In this video, we will learn about the for loop in Python. The for loop is used to loop over a sequence, one item at every iteration. We will learn about Python sequences, range() function, and looping through a Python list. At the end of the video, we will also learn to write a program to print the multiplication table of a specified number.
~
Run Python Online: https://www.programiz.com/python-programming/online-compiler/
Programs in this video: https://github.com/programiz/python-course/blob/master/09-for-loop.md
Python for loop (text-based tutorial): https://www.programiz.com/python-programming/for-loop
Python while Loop:
https://youtu.be/5AOfDuV6X30?list=PL98qAXLA6afuh50qD2MdAj3ofYjZR_Phn
Watch our videos and revise them with our Python App!
Download here for Android: https://bit.ly/learn-python-android
Download here for iOS: https://apple.co/3iPm6Sx
Timestamps:
0:00 Intro
0:28 Python Sequences
1:18 Python for Loop
3:19 Looping through a List
3:59 Python range()
5:30 Multiplication Table using for
7:18 Programming Task
7:45 Recap
Find Programiz elsewhere:
Facebook: https://www.facebook.com/programiz
Instagram: https://www.instagram.com/_programiz/
LinkedIn: https://www.linkedin.com/company/programiz
Website: https://www.programiz.com
---------------------------------------------------
For Loop in Python (So Easy to Understand)
#python #learnprogramming #programiz #forloop