A TypeError occurs when an operation is applied to an inappropriate type.
This code has a TypeError. Fix it so the function correctly calculates the total.
Run your code to see output
Click "Submit" to check your answer