What does return value mean?

The value a function sends back to the code that called it, with the return statement. A function with no return statement sends back None.

Also written as: return values, returns a value

In a lesson

A subprogram that returns a value, like area or distance(), is a function. One that only does something, like square or led("red"), is a procedure. Python uses def for both; the exam languages write them differently.

Learn it

Used in

and 4 more lessons.

Do the lesson in the simulator

All glossary terms