Loading topic
def, call it, and use basic data types such as strings, lists and numbers. It separates two terms that people often mix up, and it shows what Python does when the two don't match.2 min readdef, call it with arguments, and write simple if statements. It covers how return hands a value to the caller. It also covers what happens when a function has no return, which is a common source of bugs.3 min readdef, know the difference between a parameter and an argument, and can use return. It covers the two basic ways a caller matches arguments to parameters, and the errors that come from mixing them up.2 min readdef, pass arguments by position and by keyword, and use return. A default value lets a caller leave an argument out.2 min readdef, and that you know how tuples and unpacking of lists work. It builds on the return statement from the earlier chapter.2 min readdef, pass arguments, and use return. It also assumes you know basic lists, tuples and dictionaries. Here you learn which variables a function can see and which ones disappear when it ends.2 min readdef, call it with arguments, and use lists and tuples. It builds on the earlier chapter on local scope: parameters are local names, and this chapter explains what those names point to.2 min readdef, give a parameter a default value, and use lists and dictionaries. You have seen that a default value lets callers leave an argument out. Here you will see why that feature misbehaves when the default is a list, a dictionary or a set.3 min readdef, pass arguments by position and by keyword, and use default values. It also assumes you know tuples and dictionaries.2 min readdef, you know positional and keyword arguments, and you have seen default values. Here you will learn two markers, / and *. You can put them in a parameter list to limit how callers pass each argument.2 min readdef, use return, and work with lists. It also assumes you know that Python passes arguments as references to objects. Here you will learn the difference between a function that returns a result and a function that changes something outside itse2 min readdef, use default values, and return single or multiple values. You should also know lists, tuples and dictionaries.2 min readdef, use parameters and return, and read type hints. Here you will add documentation that Python stores with the function and that tools can read.2 min read