Connect with one of the following accounts


Please wait while we redirect...

Views: 124   

Following program shows you how to take birth year and tells age.
In this program we get birth year from user and tells their age using currentYear - birthYear

birthYear = int(input("Please enter your date of birth:"))
age = 2018 - birthYear
print("Your age is", age)


Please enter your date of birth: 1980
Your age is 38

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News