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.
Leave A Comment
You must be logged in to post a comment.