Why does this code not work? No easy way to explain.
def main():
  while True:
    mon = input("What is the month? ( 1 - 12 )")
    try:
        mon = int(mon)
    except ValueError:
        print("Try again.")
    elif mon > 0 and mon < 13:
        break
    else:
        print("Try again.")
 
    