Build a Bill Splitter - Step 4

Tell us what’s happening:

Hey! So everything seems to be okay, even the teminal has no errors but i keep getting the same error to add the + sign. Here’s the code:

running_total = 0

num_of_friends = 4

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

running_total += appetizers
running_total += main_courses
running_total += desserts
running_total += drinks

print('Total bill so far: ’ + str(198.83))

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: ' + str(198.83))

# 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 Edg/145.0.0.0

Challenge Information:

Build a Bill Splitter - Step 4

Instead of manually updating a running total and printing a fixed number, what single line could calculate the sum of all four items and then print that calculated result directly?

You are not printing the running_total variable.

I got it! Thanks dhess!:hugs: