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.
- 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 → - Python OOP Lessons: 10
Object-oriented programming in Python: classes and objects, the __init__() method, inheritance, polymorphism and encapsulation.
Start with: Python OOP → - 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 → - Python Big O Analysis Lessons: 8
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 → - 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 → - Python SOLID Principles Lessons: 5
Five principles for code that is easy to change and maintain, each one shown with Python examples.
Start with: Python Single Responsibility Principle → - Python Design Patterns Lessons: 24
The 23 classic design patterns, such as Singleton, Factory Method, Observer and Strategy, each one with a Python example.
Start with: Python Design Patterns → - 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 →