Skip to content

Videos: How Loops Work

Back to concept


Best single video

  • CS50P - Lecture 2: Loops by Harvard / David Malan (~2 hrs full lecture) Harvard's CS50 Python course dedicates an entire lecture to loops, covering while loops, for loops, lists, dictionaries, and the range function. David Malan builds intuition with clear diagrams and live demos. Watch the first 45 minutes for core loop mechanics. https://www.youtube.com/watch?v=-7xg8pGcP6w

Alternative explanations

  • Python Tutorial for Beginners - Full Course by Mosh Hamedani (~6 hrs full course) Mosh covers for loops, while loops, and nested loops in a dedicated section of his full course. His explanations are clean, visual, and paced for absolute beginners. Jump to the loops chapter using the video chapters. https://www.youtube.com/watch?v=_uQrJ0TkZlc

  • Python Full Course by Bro Code (~12 hrs full course) Bro Code's comprehensive course covers while loops and for loops with plenty of hands-on examples and a casual teaching style that resonates with self-learners. Use the timestamp chapters to jump directly to the loops section. https://www.youtube.com/watch?v=XKHEtdqhLK8

Deep dives

  • Learn Python - Full Course for Beginners by freeCodeCamp (~4.5 hrs) This freeCodeCamp course includes an extended section on loops with practical exercises. Good for learners who want to see loops used in small projects rather than isolated examples. https://www.youtube.com/watch?v=rfscVS0vtbw

Interactive practice


Last verified: 2026-02-25. If a link is broken, please open an issue.