# Default function to implement conditions to check leap year

def CheckLeap(Year):

  # Checking if the given year is leap year

  if((Year % 400 == 0or

     (Year % 100 != 0and

     (Year % 4 == 0)):

    print(“Given Year is a leap Year”);

  # Else it is not a leap year

  else:

    print (“Given Year is not a leap Year”)

# Taking an input year from user

Year = int(input(“Enter the number: “))

# Printing result

CheckLeap(Year)


Leave a Reply

Your email address will not be published. Required fields are marked *