Module 3
Your own functions
def, return, parameters, chaining
When you finish this module you can say:
I can split a task into functions and connect their results.
By the end of this module you'll be able to write a calculator where every operation is its own function, that catches division by zero, and that takes input from the user.
StartLessons
7 lessons · ≈ 67 min
- def and return: your first function9 min
- Parameters9 min
- print vs return8 min
- Chaining functions10 min
- Docstrings and naming9 min
- Decomposition: splitting a big task10 min
- Project: Calculator12 min · project
Practice exercises
Short writing exercises, independent of the lessons: Go to the exercises