Python icon indicating copy to clipboard operation
Python copied to clipboard

•👨‍💻🚀🐍program to read the name and year of birth of a person. display whether the person is a senior citizen or not #python #Techlearning #vtustudent #codinglife

Open ayyanagoud12 opened this issue 1 month ago • 2 comments

name = input("enter your name: ") year_of_birth = int(input("enter your year_of_birth:"))

from datetime import date current_year = date.today().year age = current_year-year_of_birth

print("/n hello",name)

if age>=60: print("you are senior citizen")

else: print("you are not senior citizen")

ayyanagoud12 avatar Dec 15 '25 15:12 ayyanagoud12