get paid to paste

Python Project - A Basic Age Calculator

#Take birth year as a input from user.
birth_year = input("What is your birth year? : ")

#Subtract birth year from current year.
age = 2022 - int(birth_year)

#Display calculated age.
print("You are " + str(age) + " years old.")

Pasted: Sep 22, 2022, 11:04:17 am
Views: 2