Python
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
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")