Build a Bill Splitter - Step 4

Tell us what’s happening:

Hi I am at a loss I don’t understand what I am doing wrong here, I can see that my code still calculates the right answer too.

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:' , str(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

when you pass a number as argument to print you do not need to use str, try removing that

Alright I see my problem now line 12- print(‘Total bill so far:’, running_total)

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