# Return Value

> The result a function hands back when done. The return line sends it out.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** return, Return Statement

## Think of it like

Think of it like a vending machine dropping your snack. You put coins in, and one thing comes back out.

## Definition

A return value is the result a function hands back when it finishes. The return line sends it out and ends the function at once. The code that called the function can then store it or use it. A function with no return line gives back nothing, which Python shows as None. Returning a value is not the same as printing it on the screen.

## Example

add_tax(10) returns 12.0. The checkout page stores that in total and shows it to the buyer.

## Example code

```python
def add_tax(price):
    return price * 1.2

total = add_tax(10)
print(total)   # 12.0
```

The function hands back 12.0, and the caller keeps it in total.

## Why it matters

Return values let functions feed each other. One function's answer becomes the next one's input.

## Common mistake

Printing a result instead of returning it. The screen shows the number, but the rest of the program gets None.

## Three principles

- **Hands back a result.** The caller can store or use it.
- **Ends the function.** Nothing after return runs.
- **Not the same as print.** Print shows it; return gives it.

## Related terms

- [Function](https://learn.benibix.com/term/development/function)
- [Function Call](https://learn.benibix.com/term/development/function-call)
- [Null](https://learn.benibix.com/term/development/null)
- [Input and Output](https://learn.benibix.com/term/development/input-output)

## Taught in

- [Functions in Python](https://learn.benibix.com/learn/development-concepts/functions-in-python): Programming Basics, 12/18

---

Source: https://learn.benibix.com/term/development/return-value
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
