🎂
Calculate Your Age!
Python50 lines· This script prints your age in three different ways :
Original project by @xlo-u — view source on GitHubReady when you are
Calculate Your Age!
This script prints your age in three different ways :
- Years
- Months
- 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
Pyodide-runnable
Yes - pure-stdlib console program using only the calendar/time modules and input()/print().
calculate-age.py· Python 3.x
59 linesConsole· terminal