Skip to content

Instantly share code, notes, and snippets.

View Ablay80's full-sized avatar

Ablay Ablay80

  • Almaty
  • 10:24 (UTC +05:00)
  • Instagram ablay_80
View GitHub Profile
@Ablay80
Ablay80 / Tip calculator
Created April 3, 2024 05:43
Day2_Tip_Calculator
#TIP calculator
print("Welcome to the tip calculator.\n")
sum = float(input("What was the total bill? Enter summ: $"))
per = int(
input(
"What persentage tip would you like to give? 10, 12 or 15?\nEnter summ: "
))
ppl = int(input("How many people to split the bill? "))
total_sum = sum + (sum * (per / 100))
pay = round(total_sum / ppl, 2)