Build a Bill Splitter - Step 8

Tell us what’s happening:

from steps 4-8 (from ‘total bill so far’ to end) my code will not be accepted. it seems to have an issue with the string, but i am sure i have done it correctly, I even ran it through my other python software and it worked perfectly . I have no idea why it’s wrong. the message coming up is this:

“You should use print() to display the string Each person pays: followed by a space and your each_pays variable.”

Your code so far

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)

tip = running_total * 0.25
print('Tip amount:', tip)

running_total += tip
print('Total with tip:', running_total)

final_bill = running_total / num_of_friends
print('Bill per person:', final_bill)


# User Editable Region

each_pays = round(final_bill, 2)
print('Each person pays: ', each_pays)


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

Challenge Information:

Build a Bill Splitter - Step 8

try to pass one step at a time please, and if you want help with the other steps, create a topic for those steps please

are you sure that is the string you are asked to print? double check the spaces

Use an f string.
print(f'Each person pays: {each_pays}')