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.

More Lifehack Videos