Loading topic
def, and that you know lists, tuples, and dictionaries. You should also be comfortable with default values, *args, and **kwargs. Lambdas are not needed yet. They come in the next chapter.2 min readdef, use default values, *args and **kwargs, and read list comprehensions. It also assumes you know that a function is a value you can pass around, which the previous chapter covered.2 min readdef with default arguments. It covers what a lambda body may contain, what happens when you go past that limit, and how to recognize when to switch to def.2 min readdef, work with lists, tuples and dictionaries, and know that a function can be passed as an argument. It builds on lambda expressions from the previous chapters.2 min readdef, work with lists and tuples, read list comprehensions, and use lambda expressions as shown in earlier chapters. It covers map and filter, two built-in higher-order functions that take a function as their first argument.2 min readmap and filter do.2 min readdef, write a basic lambda, and use map and filter on lists. It also assumes you know how list comprehensions work. Here you will learn how functools.reduce folds a sequence into a single value, and when a simpler tool does the same job bette3 min readdef, pass functions as arguments, and write a basic lambda. You should also know how local variables work inside a function.3 min readdef, how default argument values work, and how list comprehensions are written. It also builds on the previous chapter on closures. You will see why lambdas created in a loop often all return the same value, and how to fix it.3 min readdef, how lambdas work, and how closures capture variables.2 min readdef, use default values, *args and **kwargs, and that you have seen sorted, map and closures. Here you will use functools.partial to turn a many-argument function into a simpler one.2 min readlambda, pass a key function to sorted, and index into tuples, lists and dictionaries. It covers the operator module, which provides ready-made function versions of Python's operators. These often replace small lambdas.2 min readdef, use *args and **kwargs, and have read the earlier chapters on closures and functions that return functions. A decorator combines these ideas.2 min readdef, read list comprehensions, and have seen lambda, sorted with a key, map, filter and the operator module. Here you pull those pieces together into a decision rule.2 min read