Section 4: Functions · Notes
Section notes
- A function is a named block of code, defined with def and called by its name.
- Parameters receive values; return sends a result back.
- Built-in functions such as len(), max() and int() save you work.
- Split a big problem into small, clear functions that are easy to test.
Your progress is saved in this browser. Accounts are coming so it follows you across devices.