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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #age #calculator #python
ADD COMMENT
Topic
Name
4+1 =