Find whether an year is a leap year or not #Check whether the year is leap year or not x = int(input("Enter an Year:")) if x % 4 == 0: print (str(x)+" is a Leap Year") else: print(str(x) + " is not a Leap Year") Output Enter an Year:1996 1996 is a Leap Year
No comments