Hello all, I would be greatful if you could help me correct my coding for this exercise. I have put:
total = 0
for item in food:
total += item
and I get the error message:
Oops, try again. compute_bill(['apple']) resulted in a TypeError: unsupported operand type(s) for +=: 'int' and 'str'
Thankyou in advance for your help!
Replace this line with your code.