Sort by

recency

|

3041 Discussions

|

  • + 0 comments
    def is_leap(year):
        if year%400==0 or (year%100!=0 and year%4==0):
         return True
        else: 
         return False
    year = int(input())
    print(is_leap(year))
    

    `

  • + 0 comments

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

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

  • + 0 comments

    def leap(year): if (year%4==0 and year%100!=0) or (year%400==0): return True else: return False year=int(input()) print(leap(year))

  • + 0 comments

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

  • + 0 comments

    **def is_leap(year): ** """ Checks if a year is a leap year based on standard rules. """ if (year % 400 == 0) or (year % 4 == 0 and year % 100 != 0): return True else: return False

            try this code guys in python 3 language