Introduction
Return values let a function send back a result after it finishes its work. This helps you reuse the result elsewhere in your program.
When you want a function to give back a calculation result, like adding two numbers.
When you need to get a value from a function to use later, like a user's input processed.
When you want to check if a function succeeded or failed by returning a status.
When you want to return multiple pieces of information from one function.