Nesting Function Calls#
Just like we can nest arithmetic expressions and use variable names with operators, like in (1 + 2) * 4 or (number_of_tas * 2) we can also use expressions and variables as arguments to functions. In addition, their results can be stored in variables. For example, we could write:
>>> x = 10
>>> y = 17
>>> max(x, y)
17
>>> z = max(x, y)
>>> z + 4
21
A few more examples:
>>> min(max(1, 2), 3)
2
>>> x = 10
>>> y = -17
>>> max(abs(x), abs(y))
17