Build a Bill Splitter - Step 4

Tell us what’s happening:

The hint says “You should print the string Total bill so far: followed by a space and the value of running_total.” . My code is: print(‘Total bill so far: 198.823’) and I’ve been stuck on this step.

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: 198.823')



# 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/147.0.0.0 Safari/537.36

Challenge Information:

Build a Bill Splitter - Step 4

Github Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-bill-splitter/6982684f3a25f379e195a5fc.md at main · freeCodeCamp/freeCodeCamp · GitHub

You are printing the value stored in running_total rather than the variable itself.

You can do that using this pattern: print('theString:', theVariable).

i did that print('Total bill so far: ',running_total) but thint clue was: You should print the string Total bill so far: followed by a space and the value of running_total.

I code that at print('Total bill so far: ',running_total) at Python and it works.

i code this print(‘Total bill so far:’ +str(running_total)) on Python and it works but not yet at the challenge