Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

age calculator in python

import datetime 
Year_of_birth = int(input("In which year you took birth:- "))
current_year = datetime.datetime.now().year
Current_age = current_year - Year_of_birth
print("Your current age is ",Current_age)
 
PREVIOUS NEXT
Tagged: #age #calculator #python
ADD COMMENT
Topic
Name
5+9 =