Skip to content

•👨‍💻🚀🐍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  #14013

@ayyanagoud12

Description

@ayyanagoud12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions