Tuesday, July 21, 2020

Leap Year Calculator [FREE CODE]

*****
This Python program tells the user whether the entered year is leap year or not. Seems Simple, But its a bit dicey..Give it a Try!!
*****

while True:

    a = int(input("Enter year : "))
    if a % 100 == 0:
        if a % 400 == 0:
            print("The year is leap")
        else:
            print("Not a leap Year")
    else:
        if a % 4 == 0:

            print("The year is leap")
        else:
            print("No leap")