hacker rank python problem(write a function)solution



WRITE A FUNCTION


def is_leap(year):
    leap = False
    if(year % 400 == 0):
        leap = True
    elif(year % 4 == 0 and year % 100 != 0):
        leap = True
    return leap
 

Compiler Message
Success
Input (stdin)Download
2000
Expected OutputDownload
True
   
   
    

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions