Build a Bill Splitter - Step 4

Tell us what’s happening:

cant find the error still tried every means gpt as well

Your code so far

running_total = 0

num_of_friends = 4

appetizers = 7.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: ",float(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/150.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

Welcome to the forum @amanmehra76 ,

The syntax for the print is: print("your text:", yourvariable)

There is no float method in JavaScript and there is no need to convert the variable type here.

Happy coding