Functions & Programming Concepts · Level 2 of 5
Return Value
A value a function sends back to its caller.
Printing a value and returning a value are different operations.
Example
A routine computes a total and hands it back for another calculation.
Listen to the definition and example
Audio transcript
Return Value. A value a function sends back to its caller. Printing a value and returning a value are different operations. For example: A routine computes a total and hands it back for another calculation.
Explore this concept
Why it matters
This helps you distinguish a computation’s contract, inputs, outputs, and behavior.
Start with
Quick recall question
Try answering before looking back at the definition.