Fill: Function Return
Fill in the Blank Beginner
Question
Fill in the blank to return the sum of a and b.
Code
def add(a, b):
___ a + b
Hint
The keyword that sends a value back to the caller is...
Explanation
return sends a value back to the caller and ends the function. Without return, the function returns None. return a + b sends the sum back.
Related Resources
Related Lessons
- Python Functions
Return values.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.