The Dual Nature of the Asterisk (*)

Packing (Defining a function)
def calc_avg(*args):
15
20
10
*
args = (15, 20, 10)
Unpacking (Calling a function)
calc_area(*bbox)
bbox = [10, 15, 20, 25]
*
10
15
20
25
min_x
min_y
max_x
max_y
Click Simulate Asterisk (*) to see the difference between using * in a def statement vs a function call.