Build a Bill Splitter - Step 4

Tell us what’s happening:

I have tried a couple of different ways and it still coming up with the same error. please and thank you for the help

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

# update running_total
running_total += appetizers + main_courses + desserts + drinks

# print total bill with the running total
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/145.0.0.0 Safari/537.36

Challenge Information:

Build a Bill Splitter - Step 4

Welcome to the forum @jayfresh1133 !

Your code looks good. You just need to make a couple of small tweaks.

The instructions did not ask you to use the “+=” operator here. Please use the “=” operator instead.

This is very close. You just need to remove the space after the colon so the syntax is: print(“string”, variable).

Happy coding!

step was updated this is not true anymore

Thanks for pointing that out. I did not notice the change to the instructions.

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