I believe I have done what is needed to pass this challenge but I am still being given a reply that “You should print the string, Total bill so far: followed by a space and the value of running_total”. I don’t get what I am doing wrong.
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(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/146.0.0.0 Safari/537.36
Okay. I see the problem, but in the future please don’t go back and edit your original post unless asked. It’s confusing for anyone who may read this thread later.
The syntax the tests are looking for is: print('your string', variable)
There is no need to apply the str() method to running_total. You would only need to do that if you were concatenating the text string and your variable. But, in this case, you are passing two arguments to print().