The error occurs because the function calculateTax()
requires an argument, specifically a subtotal
value, but it is being called without any arguments. Here's the relevant portion of the code:
calculateTax()
The correct way to call this function would be to provide a value for the subtotal
, like so:
calculateTax(100) # Example value for subtotal
Therefore, the correct response is:
calculateTax() requires an argument.