MENU

Fun & Interesting

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

Chandoo 7,298 4 months ago
Video Not Working? Fix It Now

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?

Comment