Leap Year

PHOTO EMBED

Tue Jun 28 2022 05:07:38 GMT+0000 (UTC)

Saved by @redpsych #undefined

def is_leap(year):

    if year%4 == 0:

        leap = True

        if year % 100 == 0:

            leap = True

            if year % 400 ==0 :

                leap = True

            else:

                leap = False

        else:

            leap = True

    else:

        leap = False



    return leap



year = int(input())

print(is_leap(year))
content_copyCOPY