Python — Beginner

Python — Complete Tutorial (Beginner): 13 topics and 46 interactive cards with runnable examples and quizzes.

Topics

  1. Introduction to Programming & Python — What is Programming? · What is Python?
  2. Your First Python Program — Hello World! · Understanding print() · Shaping Your Output: sep, end and \n
  3. Variables — Your Data Containers — What is a Variable? · Assigning and Updating Variables · Naming Conventions · Variables in Action: A Full Example
  4. Data Types — Kinds of Values — What is a Data Type? · Numbers: int and float · Strings (str) · Booleans (bool) · None and type()
  5. Operators & Expressions — What is an Operator? · Arithmetic Operators · Comparison Operators · Logical Operators · Assignment Operators
  6. Conditional Statements — Making Decisions with if / elif / else · The match Statement · Conditional Expressions (the "ternary")
  7. Loops & Iterations — Why We Need Loops · The for Loop and range() · The while Loop · break and continue
  8. Functions — What is a Function? · Parameters and Return Values · Lambda Functions · Functions Working Together
  9. Lists — Collections of Data — What is a List? · Common List Methods · Looping Through Lists
  10. Dictionaries & Classes — What is a Dictionary? · Lists of Dictionaries · Classes: Blueprints with Behaviour
  11. Strings — Working with Text — Strings as Sequences of Characters · String Methods Reference · f-Strings
  12. Error Handling — try / except / finally · Raising Your Own Errors
  13. Mini-Projects & Practice — Simple Calculator · Grade Reporter · Number Guessing Game · Practice Exercises · Now You Try!