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.