[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/RitikPyCode/pythonprogram/master/leap%20year [Back]  [Original]

def checkYear(year):
    if (year % 4) == 0:
        if (year % 100) == 0:
            if (year % 400) == 0:
                return True
            else:
                return False
        else:
             return True
    else:
        return False
 
# Driver Code 
year = 2000
if(checkYear(year)):
    print("Leap Year")
else:
    print("Not a Leap Year")

Web Proxy Viewer  |  New URL  |  Original Page