Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@ayyanagoud12

Description

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

        AltStyle によって変換されたページ (->オリジナル) /