We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd24d2d + d0031a6 commit f61e82bCopy full SHA for f61e82b
TIME SCRIPTS/Age calculator/age.py
@@ -1,8 +1,14 @@
1
+import datetime
2
+
3
name = input("What is your name: ")
4
5
Birth_Year = int(input("Enter your birth year: "))
6
-Current_time = 2022
7
+currentDateTime = datetime.datetime.now()
8
+date = currentDateTime.date()
9
+year = date.strftime("%Y")
10
11
+Current_time = year
12
13
def age_caluu():
14
Age_calculated = (Current_time - Birth_Year)
0 commit comments