Build a Bill Splitter - Step 4

Tell us what’s happening:

they said “You should update running_total using the + operator to sum all four courses cost”’ while I think I already use the + correctly

Your code so far

running_total = 0

num_of_friends = 4

appetizers = 37.89
main_courses = 57.34
desserts = 39.39
drinks = 64.21

# User Editable Region


running_total += appetizers + main_courses + desserts + drinks

print('Total bill so far: ' + running_total)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build a Bill Splitter - Step 4

Were you asked to use “+=” to assign the running_total?

Also, you should be seeing an error in the console:

Traceback (most recent call last):
  File "main.py", line 15, in <module>
TypeError: can only concatenate str (not "float") to str