Tip Calculator

PHOTO EMBED

Mon Sep 25 2023 19:03:11 GMT+0000 (Coordinated Universal Time)

Saved by @Duhita0209

bill = float(input("What was the bill? "))
tip = int(input("what percentage tip would you like to give? 10, 12, 15? "))
people_to_split = int(input("How many people are there to split? "))
total_bill = bill * (1 + tip / 100)
bill_per_person = round(total_bill / people_to_split, 2)
print(f"each person needs to pay {bill_per_person}")
content_copyCOPY