Build a Bill Splitter - Step 4

Tell us what’s happening:

stuck need help:

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)

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 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Build a Bill Splitter - Step 4

Welcome to the forum @Shado

Did you notice the message in the console?

Happy coding

Why quotes and commas here? You are summing numbers.

Is Total bill so far: a variable? Or a string?

that’s exactly what pops up. I can’t figure it out.

it said did you forget the commas so I tried what I could.

When you want to print a string you need to use quote marks.