Caching decorator • Call a function until a sentinel value • Clarify function calls with keyword arguments • Clarify multiple return values with named tuples • Concatenating strings • Concise expressive one-liners • Construct a dictionary from pairs • Context manager: redirect_stdout() • Counting with dictionaries • Custom sort order • Distinguishing multiple exit points in loops • Factor-out temporary contexts • Factor-out temporary contexts for decimal • Grouping with dictionaries • How to open and close files • How to use locks • Is a dictionary pop() atomic? • Linking dictionaries • Looping backwards • Looping in sorted order • Looping over a collection • Looping over a collection of indicies • Looping over a range of functions • Looping over dictionary keys • Looping over dictionary keys and values • Looping over two collections • Simultaneous state updates • Unpacking sequences • Updating multiple state variables • Updating sequences • Using decorators to factor-out administrative logic