Python Fundamentals: From Basics to Async

Learn Python from variables to classes, generators, decorators and async. For beginners and career switchers who want practical scripting and backend skills.

Start course →

What you'll learn

  • Set up Python and a virtual environment, and run scripts.
  • Use variables, types, control flow, functions and the core collections.
  • Model data with classes, inheritance, dataclasses and enums.
  • Handle errors, files, JSON/CSV, logging and modules.
  • Write generators, decorators, tests and basic async code.

Syllabus

Module 1: Getting Started

  1. Python Introduction
  2. Install Python
  3. Hello, World!

Module 2: Basics

  1. Python Syntax
  2. Variables
  3. Data Types
  4. Operators

Module 3: Control Flow

  1. If ... Else
  2. Loops

Module 4: Collections

  1. Lists
  2. Tuples
  3. Sets
  4. Dictionaries
  5. Comprehensions & Nested Data

Module 5: Strings Deep Dive

  1. String Methods
  2. f-strings & Formatting
  3. Slicing, Split & Join

Module 6: Functions

  1. Defining Functions
  2. *args and **kwargs
  3. Lambda Functions
  4. Scope & Closures
  5. Recursion

Module 7: Object-Oriented Programming

  1. Classes, Objects & __init__
  2. Instance vs Class Attributes
  3. Inheritance & Overriding
  4. Dunder Methods
  5. Properties & Encapsulation
  6. Class & Static Methods
  7. Dataclasses & Enums

Module 8: Error Handling

  1. try / except / else / finally
  2. Raising & Custom Exceptions
  3. Logging & Debugging

Module 9: Files & I/O

  1. Reading & Writing Files
  2. Working with Paths (pathlib)
  3. CSV & JSON Files

Module 10: Iterators & Generators

  1. The Iterator Protocol
  2. Generators & yield

Module 11: Decorators

  1. Decorator Basics
  2. Practical Decorators

Module 12: Modules & Packages

  1. Imports & Your Own Modules
  2. Virtual Environments & pip
  3. Popular Packages at a Glance

Module 13: Standard Library Essentials

  1. collections & itertools
  2. datetime, os & sys
  3. random & math

Module 14: Advanced Topics

  1. Regular Expressions
  2. Type Hints
  3. Testing Basics
  4. Async Basics