Python Testing & Debugging|
Fix the TypeError

Understanding Error Messages

Python

Fix the TypeError

TypeError

A TypeError occurs when an operation is applied to an inappropriate type.

Your Task

This code has a TypeError. Fix it so the function correctly calculates the total.

Code Editor
Loading PYTHON engine...
Loading...
Loading Python engine...

Run your code to see output