Learn For Loop in Python Properly (with sample code 👩‍💻)

Published: 17 December 2024
on channel: Chandoo
13,377
375

Loops & Lists are two most important aspects of Python. In this video, learn how to work with them with clear and practical examples.

What we are going to learn:
1) Programming concepts like data types, objects and control flow
2) How to use for loop to loop through list of items
3) A cool trick to write faster and better loops
4) Using list comprehension - alternative to loops

👩‍💻 Code used in this video:
https://github.com/chandoo-org/python

🕐 Video timestamps:

0:00 - Introduction to looping and list comprehension
0:15 - 3 Main concepts in programming
0:38 - Data types
2:10 - Objects & Classes
3:15 - Control flow
5:18 - Using for loop in Python
8:19 - Printing index number & sport with loops
13:38 - A faster & better way to write loops with enumerate()
16:13 - List comprehension in Python
21:16 - What's next?


On this page of the site you can watch the video online Learn For Loop in Python Properly (with sample code 👩‍💻) with a duration of hours minute second in good quality, which was uploaded by the user Chandoo 17 December 2024, share the link with friends and acquaintances, this video has already been watched 13,377 times on youtube and it was liked by 375 viewers. Enjoy your viewing!