Skip to content

Naeem-360/age_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“… Age Calculator

Python License Maintenance

A simple yet powerful Python utility that calculates your exact age in years, months, and days based on your birthdate.

๐ŸŒŸ Features

  • ๐Ÿ“Š Calculates precise age in years, months, and days
  • ๐Ÿ—“๏ธ Handles leap years and different month lengths
  • ๐Ÿ”„ Automatically compares with the current date
  • ๐Ÿ–ฅ๏ธ Clean and user-friendly interface

๐Ÿ“‹ Requirements

  • Python 3.x
  • datetime module (standard library)

๐Ÿ’ป Usage

Run the script using Python:

python age_calculator.py

Follow the prompts to enter your birth year, month, and day.

๐Ÿ“ Example

Enter your birth year: 1995
Enter your birth month: 5
Enter your birth day: 15

Your age is:
29 years, 9 months, and 12 days

๐Ÿงฎ How It Works

The script:

  1. Collects the user's birth date information
  2. Gets the current date using Python's datetime module
  3. Performs date calculations with appropriate adjustments for month lengths
  4. Displays the precise age in years, months, and days

๐Ÿ“ Notes

  • The script handles date adjustments for accurate calculations
  • Works with any valid date input
  • Accounts for leap years when calculating February days

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

๐Ÿ“œ License

This project is MIT licensed.

๐ŸŒ Connect with Me

GitHub LinkedIn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages