Functions and Closures

Arguments, comprehensions, scope, closures and decorators: writing Python functions well.

  1. 01

    Comprehensions

    • easy
  2. 02

    Positional and Keyword Arguments

    • easy
    • Pro
  3. 03

    Sort with a Key Function

    • easy
    • Pro
  4. 04

    Scope and the Global Keyword

    • medium
    • Pro
  5. 05

    Closures in Python

    • medium
    • Pro
  6. 06

    Write a Decorator

    • medium
    • Pro
  7. 07

    Late-Binding Closures

    • hard
    • Pro