Answer:
def split_check(bill, people, tax_percentage, tip_percentage):
tax = bill * tax_percentage
tip = bill * tip_percentage
total_bill = bill + tax + tip
return total_bill / people
Step-by-step explanation:
Create a function called split_check that takes four parameters, bill, people, tax_percentage, and tip_percentage
Inside the function, calculate the tax, multiply bill by tax_percentage. Calculate the tip, multiply bill by tip_percentage. Calculate the total_bill, sum bill, tax, and tip. Finally, return the total_bill / people which gives the amount each diner needs to pay.