You are on page 1of 1

print("Welcome to the tip calculator")

total_bill = input("What was the total bill? $")


percentage_tip= input("What percentage tip would you like to give?10,12 or 15? ")
total_people = input("How many people to spli the bill? ")
each = (int(total_bill)/int(total_people)) * (1 + int(percentage_tip)/100)
eachround = round(each,2)
print(f"Each person should pay: {eachround}")

You might also like