Build a Bill Splitter - Step 4

Tell us what’s happening:

I can not find the mistakes in my code. Please help me

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
running_total+=main_courses
running_total+=desserts
running_total+=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/146.0.0.0 Safari/537.36

Challenge Information:

Build a Bill Splitter - Step 4

Hi there,

For the print, you can either use an f-string or pass in two arguments (a string and the variable). Currently, your print is showing ‘running_total’ as a string in the console. rather than the value of running_total.

And to pass the tests, you will need to use the addition assignment operator only once to update the value of running_total.

Happy coding!

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