eduSTEMlab: Erin’s Age Calculator in PythoneduSTEMlab2024-02-22T23:21:54+00:00
eduSTEMlab: Erin’s Age Calculator in Python
December 1, 2023
Erin’s project is a simple Python script for calculating and displaying a person’s age based on their input. The user is prompted to enter their name, the current year, and their year of birth.
The script then calculates the age by subtracting the year of birth from the current year, converting the input to integers for accurate calculations. The final output is a personalized message stating the user’s name and age.
This straightforward command-line program provides a quick and interactive way for users to determine their age by providing essential details through console input.
Leave A Comment
You must be logged in to post a comment.