Beginner

Work through these lessons in order. Each builds on the last.

Unit 1

  1. What Is Python? 7 min
  2. How to Install Python 9 min
  3. How to Run Python Code 8 min
  4. The Python print() Function 8 min
  5. Variables 10 min
  6. Python Data Types 9 min
  7. Strings 11 min
  8. Numbers 10 min
  9. Booleans and None 9 min
  10. Operators 9 min
  11. Input and Output 8 min
  12. Comments and Readability 7 min

Unit 2

  1. if Statements 9 min
  2. Loops 8 min
  3. for Loops 10 min
  4. while Loops 9 min
  5. Lists 11 min
  6. Tuples 8 min
  7. Dictionaries 11 min
  8. Sets 8 min
  9. Functions 12 min
  10. Variable Scope 9 min
  11. Modules and Imports 10 min
  12. Debugging Basics 10 min

Unit 3

  1. Common Python Errors 10 min
  2. Exceptions and try/except 11 min
  3. Reading and Writing Files 11 min
  4. Paths and Folders 10 min
  5. List Comprehensions 10 min
  6. f-strings 8 min
  7. Python Virtual Environments (venv) 10 min
  8. Installing Packages with pip 10 min
  9. Command-Line Arguments 10 min
  10. Organizing a Python Project 11 min