100 Days of Python: Day 2 – Data Types & Building a Tip Calculator
Day Two of my 100 Days of Python journey was all about diving deeper into Python’s fundamental data types and operations. I explored different types of data, including:
- Strings – sequences of characters
- Integers – whole numbers
- Long Integers – larger whole numbers
- Floats – numbers with decimals
- Booleans – True or False values
Beyond just recognizing these types, I learned how to manipulate strings and convert between different data types using type checking and type conversion. Then, I moved on to mathematical operations, number formatting, and the magic of F-strings, which simplify how we display formatted text.
Building a Tip Calculator
To put my learning into practice, I built a simple Tip Calculator. This program helps users split a restaurant bill fairly, factoring in the tip percentage. Here’s how it works:
- User Inputs:
- Total bill amount
- Tip percentage (10%, 15%, or 20%)
- Number of people splitting the bill
- Calculations:
- Compute the tip amount based on the chosen percentage
- Add the tip to the total bill
- Divide the final bill by the number of people
At the end, each person gets their fair share of the bill, making group dining much easier!
This project was a fun and practical way to apply my Python skills. Looking forward to what Day Three has in store! 🚀

