Skip to main content

Python is a language known for clear, readable code. The course starts with the basics, continues with object-oriented programming and goes on to collections, Big O analysis, unit testing, SOLID principles, design patterns and REST APIs. Each lesson gives you a prompt, the code and its output. Choose a section below to begin.

  1. Python Tutorial Lessons: 96

    The basics of Python: syntax, variables, data types, strings, operators, lists, tuples, sets, dictionaries, conditions, loops and functions. Start here if you are new to Python.

    Start with: Python Introduction →
  2. Python OOP Lessons: 10

    Object-oriented programming in Python: classes and objects, the __init__() method, inheritance, polymorphism and encapsulation.

    Start with: Python OOP →
  3. Python Collections Lessons: 7

    Everyday work with collections in Python: transform, filter, group and sort them, take parts of them and calculate totals.

    Start with: Python Transform a List →
  4. How to measure how fast code runs and how much memory it uses, from constant time O(1) to exponential time O(2ⁿ), with examples in Python.

    Start with: Python Big O Notation →
  5. Python Unit Testing Lessons: 5

    How to write tests that show your Python code works: first tests, table-driven tests, testing errors and best practices.

    Start with: Python Unit Testing →
  6. Five principles for code that is easy to change and maintain, each one shown with Python examples.

    Start with: Python Single Responsibility Principle →
  7. The 23 classic design patterns, such as Singleton, Factory Method, Observer and Strategy, each one with a Python example.

    Start with: Python Design Patterns →
  8. Python REST API Lessons: 8

    How to build a REST API in Python: JSON, an HTTP server, routing, methods and status codes, middleware and a complete CRUD example.

    Start with: Python REST API Introduction →