• + 0 comments

    def is_leap(year):

    if year % 4 == 0 and year % 100 == 0 and year % 400 == 0:
        return True
    elif year % 4 == 0 and year % 100 == 0 and year % 400 != 0:
        return False
    elif year % 4 == 0 and year % 100 != 0:
        return True
    else:
        return False 
    
                kind of hard to get your head around what its asking. im a noob so theres probably a more simple code to get the answer, but this is easy to follow with human logic
    

    year = int(input()) print(is_leap(year))