This is a simple command-line application that calculates the total bill amount including tip and divides it among a specified number of people.
- Asks for the total bill amount.
- Asks for the desired tip percentage (e.g., 10, 12, or 15).
- Asks for the number of people to split the bill.
- Calculates and displays the amount each person should pay, formatted to two decimal places.
- Clone this repository:
git clone https://github.com/ZACKSANGEM/python-tip-calculator.git(I'll update this URL later) - Navigate to the project directory:
cd python-tip-calculator - Run the Python script:
python tip_calculator.py
- Python 3.x
- Basic arithmetic operations
- Data type conversion (string to float/int)
- F-strings for formatting output
This project was completed as part of Dr. Angela Yu's 100 Days of Code: The Complete Python Pro Bootcamp on Udemy (Day 2). It reinforced my understanding of data types, type casting (converting strings to numbers), and using f-strings for precise output formatting, especially with floating-point numbers.
Disclaimer: This project is for learning purposes and was developed as part of a bootcamp.