Skip to content

Commit

Permalink
Update age.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joongdok1864 authored May 9, 2024
1 parent ceee3db commit bbc85c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Desktop Application/Basic/Python/Age calculator/age.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
d1 = datetime.date.today()
num = 0
try:
birthday = input("When is your birthday?")
birthday = input("When is your birthday?(dd/mm/yyyy)")
birthday = datetime.datetime.strptime(birthday,"%d/%m/%Y",).date()
key2 = birthday.year+18
age = now.year - birthday.year
Expand Down

0 comments on commit bbc85c9

Please sign in to comment.