I believe that I have done everything right but for some reasons when checking my code it is still asking me for a space which is already there, so I don’t understand, already checked all the questions on the forum tried multiple alternatives but it won’t work…
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(round(running_total,2)))
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Even if I do not round the running_total I am still getting this message : “You should print the string Total bill so far: followed by a space and the value of running_total.”
And I am already printing the string followed by the space and the value.
print('Total bill so far: ', running_total)
My error is: You should update running_total using the + operator to sum all four courses cost.
I am getting the exact output that freeCodeCamp wants according to their console tab. I am also on Firefox, but just on Kubuntu 15.04 LTS. My browser is the latest version.
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.
The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
Well this still does not solve my issue…Maybe it is something on freeCodeCamp’s side, the tests they use to check the code, they might be looking for something very specific, I don’t know.