Python functions can return multiple values:
def min_max(numbers):
return min(numbers), max(numbers)
smallest, largest = min_max([3, 1, 4, 1, 5])
print(smallest) # 1
print(largest) # 5
Technically, you're returning a tuple and unpacking it. But it looks like returning multiple values.
This is useful when a function naturally computes several related things.