Menu
Coddy logo textTech

Calculating The Tip And Total

Part of the Fundamentals section of Coddy's Python journey — lesson 32 of 77.

challenge icon

Challenge

Beginner

Create a bill tip calculator program that follows these steps:

  1. Print "Bill Split Calculator" as the program title
  2. Get the bill amount from user input
  3. Get the tip percentage from user input
  4. Calculate the tip amount using the formula: tip_amount = (tip_percentage / 100) * bill_amount
  5. Add the tip amount to the bill amount to get the total
  6. Print the total amount

Note: You'll need to convert the input strings to float numbers using float(input())

Important: Use the formula exactly as written above — divide tip_percentage by 100 first, then multiply by bill_amount. Changing the order of operations (e.g., multiplying before dividing) can produce slightly different floating point results that will not match the expected output.

Try it yourself

# Step 1: Print the program title


# Step 2: Get the bill amount from user input


# Step 3: Get the tip percentage from user input


# Step 4: Calculate the tip amount


# Step 5: Calculate the total amount


# Step 6: Print the total amount

All lessons in Fundamentals