All articles

Python Fundamentals

A ten-part, beginner-friendly path through Python: setup, variables and types, strings, collections, control flow, functions, object-oriented programming, files and exceptions, modules and virtual environments, and testing with a first project. Every part has runnable example code on GitHub.

  1. Getting Started with Python: Install, Run, and Your First Program · 8 min
  2. Variables, Numbers, and Types in Python · 8 min
  3. Working with Strings and Text in Python · 8 min
  4. Python Collections: Lists, Tuples, Sets, and Dictionaries · 8 min
  5. Control Flow in Python: Conditionals and Loops · 8 min
  6. Functions in Python: Arguments, Return Values, and Scope · 8 min
  7. Object-Oriented Programming in Python · 8 min
  8. Files, Exceptions, and Context Managers in Python · 8 min