Skip to content

Videos: What Is a Variable

Back to concept


Best single video

  • Python Tutorial for Beginners 2: Strings - Working with Textual Data by Corey Schafer (~21 min) Corey's beginner series walks through creating variables and assigning values using strings as the first real data type. Clear, methodical explanations with live coding. Start here even though the title says "Strings" -- variables are the backbone of every example. https://www.youtube.com/watch?v=k9TUPpGqYTo

Alternative explanations

  • CS50P - Lecture 0: Functions, Variables by Harvard / David Malan (~2 hrs full lecture) Harvard's CS50 Python course opens with variables and functions in its very first lecture. David Malan's teaching style is engaging and thorough, with real-time audience interaction. Watch the first 30 minutes for a focused variables introduction. https://www.youtube.com/watch?v=JP7ITIXGpHk

  • Python Tutorial for Beginners - Full Course (Programming with Mosh) by Mosh Hamedani (~6 hrs full course) Mosh covers variables, strings, and data types in the first 30 minutes of this 6-hour course. His pacing is steady and beginner-friendly, with clean visuals and no assumed knowledge. Over 42 million views. https://www.youtube.com/watch?v=_uQrJ0TkZlc

Deep dives

  • Hello World in Python by Socratica (~4 min) A short, polished introduction to your first Python program, including creating and printing variables. Socratica's production quality is high and the lessons feel like a classroom experience. https://www.youtube.com/watch?v=KOdfpbnWLVo

Interactive practice


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