🎂

Calculate Your Age!

Python50 lines· This script prints your age in three different ways :
Original project by @xlo-u — view source on GitHub
Ready when you are

Calculate Your Age!

This script prints your age in three different ways :

  1. Years
  2. Months
  3. Days

Prerequisites

You only need Python to run this script. You can visit here to download Python.

How to run the script

Running the script is really simple! Just open a terminal in the folder where your script is located and run the following command :

`python calculate.py`

Sample use of the script

$ python calculate.py 
    input your name: XYZ
    input your age: 33 
    XYZ's age is 33 years or 406 months or 12328 days

Author Name

Yash Upadhyay

Pyodide-runnable

Yes - pure-stdlib console program using only the calendar/time modules and input()/print().

calculate-age.py· Python 3.x
59 lines
Console· terminal