Build a Bill Splitter - Step 4

Tell us what’s happening:

Hello. Idk what’s wrong. This is my code:

running_total += appetizers + main_courses + desserts + drinks

print(‘Total bill so far:’, + running_total)

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 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0

Challenge Information:

Build a Bill Splitter - Step 4

when you test this code, you see a message that tells you what is wrong and it says:

You should print the string

Total bill so far:

followed by a space and the value of

running_total

You’ve done most of what this says to do. You’re just missing one thing. Can you spot it?

Edit: also, are you sure the print is syntactically correct? the plus is doing what you think it is? Double check that.

Thank you! I figured it out right after I posted it lol.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.