Input : Year (Four digits)
Following is a program to check input Year is a leap year or not.
x=int(input("Enter a year"))
if(x%4==0):
if(x%100!=0):
print("Leap year")
elif(x%400==0):
print("Leap Year")
else:
print("Not a Leap year")
else:
print("Not a leap year")<code data-enlighter-language="python" class="EnlighterJSRAW">x is an integer (Year)



