This simple Python script calculates your age based on your date of birth. It supports command-line inputs for the year, month, and day of birth. Great for learning Python, understanding date handling, or building small CLI tools!
- 🗓️ Accepts year, month, and day of birth as inputs.
- 🚀 Command-line interface (CLI) for easy usage.
- ⚡ Calculates your precise age based on today's date.
- 🛡️ Handles invalid dates with clear error messages.
git clone https://github.com/your-username/age-calculator.git
cd age-calculator
Use the following command to calculate your age:
python age_calculator.py --year 1990 --month 12 --day 15
You are 33 years old.
--year (required): Year of birth (e.g., 1990).
--month (optional): Month of birth (1-12, default: 1).
--day (optional): Day of birth (1-31, default: 1).
Python 3.6 or higher
This project is licensed under the MIT License. See the LICENSE file for details.