Age calculator
What do you think? import datetime now = datetime.datetime.now() x = now.year m = now.month d = now.day y = int(input("Birth year: ")) mi = int(input("Month 1-12: ")) di = int(input("Day 1-31: ")) age = (x-y) if mi == m and di == d: print ("Your age is: ", + age) import sys sys.exit() if mi <= m and di <= d: print ("Your age is: ", + age) import sys sys.exit() if mi > m and di >= d: age = ((x-y)-1) print ("Your age is: ", + age) import sys sys.exit() if mi > m and di <= d: age = ((x-y)-1) print ("Your age is: ", + age) import sys sys.exit() if mi <= m and di >= d: print ("Your age is: ", + age) import sys sys.exit() if mi < m and di >= d: print ("Your age is: ", + age) import sys sys.exit()