You have written a function in every exercise; this module is about functions themselves: how to design one that can be used again, where its names live, how to hand a small function to another one, and how to read a class, the way Python bundles data with the functions that work on it.
What you do
Section titled “What you do”- Defining a function: parameters, return and print, defaults
- Scope
- Functions as values: sorting with a key, lambda, map and filter
- Objects and classes: reading them more than writing them
The module’s notebooks
Section titled “The module’s notebooks”- 40_functions.ipynbFunctionsRead itCompanion · 5 exercises
The notebooks are in your course folder; here you can read them without running anything.
Quizzes
- Check-inAt the end of the module. A short check on “Functions”, and how ready you feel; its answers show as soon as you submit.Check-in: Functions ↗
The quizzes are on BNHR Quizzes and count toward nothing. Learning on your own, a quiz opens as the self-paced one; while a training runs, it asks which training you are in.