Giving me an error saying “You should use the round() function to round final_bill to two decimal places and assign the result to your each_pays variable.” But I’ve assigned each variable. I’m not sure where I’m going wrong.
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)
*(this is where I'm going wrong)
final_bill = 62.13437499999999
round(final_bill, 2)
each_pays = 62.13
print('Each person pays:', each_pays)