year=int(input("enter a year: \n"))
if (year%4==0):
if (year%100==0):
if(year%400==0):
print("it is a leap year")
else:
print("it is not a leap year")
else:
print("it is a leap year")
else:
print("it is not a leap year")
To embed this project on your website, copy the following code and paste it into your website's HTML: