# WAP to check if year is leap year or not

year = int(input("Enter the year: "))

if (year % 400 == 0) and (year % 100 == 0):
    print(f"{year} is a leap year")
elif (year % 4 == 0) and (year % 100 != 0):
    print(f"{year} is a leap year")
else:
    print(f"{year} is not a leap year")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: