year = int(input("Enter A Year:")) leap = False year1 = year year2 = year modulo = year % 4 if modulo > 0 : leap = True modulo = year1 % 100 if modulo > 0 : leap = False modulo = year2 % 400 if modulo > 0 : leap = True if leap == True : print("This is a leap year") if leap == False : print("not a leap year")