Python: the language from zero

About the course

Python 3.12 from zero: print and variables, numbers, strings and f-strings; lists, tuples, dictionaries and sets; conditions, loops and comprehensions; functions, keyword arguments, *args and **kwargs, scopes and closures, lambda; exceptions, files and with, modules and the standard library, venv and pip; classes briefly, iterators and generators, type hints. The output of the programs in the tasks is checked by a real Python.

Course program: 31 lessons

Values and strings

  1. First program: print and variables
  2. Numbers: int, float and operations
  3. Strings: numbers, slices, methods
  4. f-strings and formatting
  5. Values and strings: mixed practice
  6. Checkpoint: values and strings

Collections

  1. Lists
  2. Tuples and unpacking
  3. Dictionaries
  4. Sets
  5. Collections: mixed practice
  6. Checkpoint: collections

Conditions and loops

  1. Conditions and truthiness
  2. Loops: for and while
  3. List, dictionary and set comprehensions
  4. Checkpoint: conditions and loops

Functions

  1. Functions and return
  2. Arguments: keyword, *args, **kwargs
  3. Scopes and closures
  4. lambda, sorted with key, map and filter
  5. Checkpoint: functions

Errors, files, modules

  1. Exceptions: try, except, raise
  2. Files and with
  3. Modules and the standard library
  4. Virtual environments and pip
  5. Checkpoint: errors, files, modules

Classes, iterators, types

  1. Classes: briefly
  2. Iterators and generators
  3. Type hints
  4. Checkpoint: classes, iterators, types

Final test

  1. Final test in Python