# If the bill was $150.00, split between 5 people, with 12% tip.
# Each person should pay (150.00 / 5) * 1.12 = 33.6
# Format the result to 2 decimal places = 33.60
# Tip: There are 2 ways to round a number. You might have to do some Googling to solve this.💪
# Write your code below this line 👇
# Welcome Message
print("Welcome to the tip calculator! ")
# Ask for total bill
bill_amount = float(input("What was the total bill? \n"))
# Ask for tip percentage
tip_amount = int(input("How much tip would you like to give? 15, 18, 20 or custom percent? \n"))
# Ask for amount of people splitting the bill
bill_split_amount = int(input("How many people to split the bill? \n"))
# Calculate total bill with tip
total_bill = bill_amount + (bill_amount * (tip_amount/100))
# Calculate bill per person
bill_per_person = round(total_bill/bill_split_amount, 2)
# Print bill for each person using f-string,
print(f"Each person should pay: {bill_per_person}")
Learnt Python
Wondered about the weight ratio of an African Swallow to a coconut