Build a Bill Splitter - Step 4

Tell us what’s happening: ‘You should update running_total using the + operator to sum all four courses cost.’ is what happens when i check my code

my code is not recognized, what am i missing i am quit confused
running_total = 0

num_of_friends = 4

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

running_total+= appetizers + main_courses + desserts + drinks

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+= appetizers + main_courses + desserts + drinks


# 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/143.0.0.0 Safari/537.36 OPR/127.0.0.0

Challenge Information:

Build a Bill Splitter - Step 4

1 Like

The formatting is wrong is the first issue I see. Should be something like this
variable = item1 + item2 + item3 + item 4

Also its says you need to print Total bill so far: Followed by a space and the value of running_total

1 Like

the code is asking for a “space” so not a literal spacebar, but to show that you have a comma between (using what you learned in the strings lesson).
Here is the code that will pass:
code removed by moderator

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

I am glad you figured it out Zolo-Bit. If my original comment was helpful and solved your problem could you please mark it as the solution to via the dropdown menu, I would greatly appreciate it. Happy Coding!

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