Preview:
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}")
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter