Intermediate

Features and techniques to increase Python proficiency.

Generators

An iterator that provides values one at a time, rather than all at once.

Lambda

A way to define a fruitful anonymous function.

Context managers

A way of handling the set up and tear down required when using a persistent data store.

Counters

A dictionary subclass for counting immutable (hashable) objects.

Decorators

A special syntax to call a function with another function as an argument.

Default dictionary

A dictionary that automatically generates empty values for keys that don't exist.

Dynamically typed

Downfall of Python being dynamically typed.

Global variables

Variables that can be used independent of function scope.

Membership testing

Membership operators test for membership in a sequence.

Mutability

What it means for a data type to be mutable.

Named tuple

A way to create a simple class that only serves to organise related values.

Ordered dictionary

A dictionary data type that remembers the order it's keys were added.

Ternary operators

One line conditional expressions.