Tuples are useful because they allow us to return multiple values from a function.
To return a tuple, we code the values that we wish to return separated by a comma ,.
To store a tuple returned by a function, we assign the function call's result to a variable like data
, as usual.
>>> def aa(a_list):
... max_value = max(a_list)
... min_value = min(a_list)
... return max_value, min_value
...
>>> a_list = [12,432,32]
>>> data = aa(a_list)
>>> data
(432, 12)