Discussion about this post

User's avatar
Jamie Rowland's avatar

Another amazing basic project for hobbyists trying to learn! Thank you very much - keep them coming 🙏

Expand full comment
Sidharth's avatar

from datetime import date

birth_year = int(input("enter your birth year"))

current_date = date.today()

age = current_date.year - birth_year

print(age)

Expand full comment
2 more comments...

No posts