...

/

Solution: Birthday Calculator

Solution: Birthday Calculator

We'll cover the following...

In this program, we’re asking the user for their birth year and then using it to calculate their age.

birth_year = input("What year were you born? ")
current_year = 2025
age = current_year - int(birth_year)
print("You are about", age, "years old!")
    ...