import calendar Year = int(input("Enter a year.")) if calendar.isleap(Year): print(Year, "is a leap year.") else: print(Year, "is not a leap year.")