Build a Bill Splitter - Step 4

Tell us what’s happening:

I am really confused on this. It continually asks me to write what I have written with a space in between. In the ‘Terminal’ tab, it shows “Total_bill_so_far: 198.82999…” which seems to be what I want, however it is still telling me to correct it somehow. Every answer on the forums just says to do what I have done, and it won’t let me move on. Help would be appreciated!

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 (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 @CallMeGreg

You should print the string Total bill so far: followed by a space and the value of running_total.

The string should not contain underscores.

Happy coding

1 Like