Lesson 9 of 26 · about 15 min
Functions: your own instructions
def creates a new instruction with a name. Parameters are its inputs, and return sends a result back to whoever called it.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- Function
- Parameter vs argument
- return
Free to try in F02 Programming 1: Thinking in Steps:
The first 3 lessons of every course are free, no account needed.