Syllabus

  1. 01Getting startedHow Python programs are structured, the style conventions the community expects, and printing, formatting and reading input.4 lessons
    1. 01How a Python program is laid out
    2. 02Style: PEP 8 and naming
    3. 03Printing, formatting and reading input
    4. 04Quiz: structure, style and output
  2. 02Basic syntaxNames and objects, the built-in scalar types and their quirks, and the operators that differ from C-family languages.4 lessons
    1. 01Variables are names, not boxes
    2. 02Numbers, strings, booleans and None
    3. 03Operators and expressions
    4. 04Quiz: names, types and operators
  3. 03Control flowBranching with if and match, for-each loops and the iteration built-ins, loop else, and exception handling the Pythonic way.5 lessons
    1. 01if/elif/else and match
    2. 02Loops and the iteration toolkit
    3. 03pass, break, continue and loop else
    4. 04Exceptions: try, except, else, finally
    5. 05Quiz: branches, loops and exceptions
  4. 04FunctionsFunction definitions, defaults and their pitfalls, every kind of parameter, functions as values, closures and recursion.5 lessons
    1. 01Defining functions
    2. 02*args, **kwargs and parameter kinds
    3. 03Functions as values, lambdas and closures
    4. 04Recursion
    5. 05Quiz: functions, arguments and closures
  5. 05Object-oriented PythonClasses the Python way: explicit self, dataclasses, construction and cleanup, encapsulation by convention and properties, inheritance, duck typing and special methods.6 lessons
    1. 01Classes, instances and self
    2. 02Construction, cleanup and context managers
    3. 03Encapsulation without access modifiers
    4. 04Inheritance and super()
    5. 05Polymorphism, duck typing and special methods
    6. 06Quiz: classes, inheritance and special methods
  6. 06Built-in data structuresStrings, lists, tuples, dictionaries and sets in depth, plus stacks, queues and priority queues from the standard library.6 lessons
    1. 01Strings in depth
    2. 02Lists and tuples
    3. 03Dictionaries
    4. 04Sets
    5. 05Stacks, queues and priority queues
    6. 06Quiz: strings, lists, dictionaries and sets