A simple if-else statement comparing inputs
def dates(a,b):
if a == 2 and b == 18:
print("Special")
elif a < 2 or (a == 2 and b < 18):
print("Before")
else:
print("After")
month = int(input())
date = int(input())
dates(month,date)
Comments