Answer :
Answer:
D. Change the def to def area (width, height = 12)
Explanation:
Required
Update the function to set height to 12 when height is not passed
To do this, we simply update the def function to:
def area (width, height = 12)
So:
In boxlarea = area (5,2), the area will be calculated as:
[tex]area = 5 * 2 = 10[/tex]
In box2area = area (6), where height is not passed, the area will be calculated as:
[tex]area = 6 * 12 = 72[/tex]