Return Values

What is a return value?

A return value is sent by the function back to the line that called the function, so the value can be used later in the code.

How do you write a function that returns a value?

The calling line uses a variable to store the return value. You can return any kind of value. To return more than one value, place the values in parentheses to return them as a tuple.