def checkleap(year):
          if (year % 4) == 0:
              if (year % 100) == 0:
                  if (year % 400) == 0:
                      print("Leap Year")
                  else:
                      print("Not a leap year")
              else:
                  print("Leap Year")
          else:
              print("Not a leap year")
      y = int(input("Enter year: "))
      checkleap(y)
      
      Python language logo

      Leap Year

      Check whether a given year is leap year or not

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.