Build a Bill Splitter - Step 6

Tell us what’s happening:

Can’t find the mistake. I’m printing followed by a space, and the variable

Your code so far

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
print('Total bill so far:', running_total)

tip = running_total * 0.25
print('Tip amount:', tip)


# User Editable Region

running_total += tip
print("Total with tip: " + str(running_total))

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15

Challenge Information:

Build a Bill Splitter - Step 6

GitHub Link: https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-bill-splitter/6977a4306bb3e856690a4890.md

try to use this format, this step has not been updated to be flexible (but will be soon)

mod edit - solution removed

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.

I’ve run into similar situations where the math was correct but the output format wasn’t exactly what the test expected. It might be worth checking for extra spaces, missing spaces, or line breaks in the final print statements. Those small details can sometimes cause a step to fail.