Build a Bill Splitter - Step 4

Tell us what’s happening:

running_total = 0

num_of_friends = 4

appetizers = 37.89
main_courses = 57.34
desserts = 39.39
drinks = 64.21
running_total += 37.89 + 57.34 + 39.39 + 64.21
print('Total bill so far: ',running_total)

It prints and seems correct, so I don’t know why it keeps showing an error that says “you should update running_total using the += operator once to add all four course costs”.

Your code so far

running_total = 0

num_of_friends = 4

appetizers = 37.89
main_courses = 57.34
desserts = 39.39

# User Editable Region

drinks = 64.21
running_total += 37.89 + 57.34 + 39.39 + 64.21
print('Total bill so far: ',running_total)


# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36

Challenge Information:

Build a Bill Splitter - Step 4

Welcome to the forum @ines.breia!

You are asked to concatenate the variables, not the value stored in those variables.

Happy coding!