Python Program to check if given year is leap year or not
Write Python Program to check if given year is leap year or not
# Python Program to check if given year is leap year or not year = int(input("Enter the year :--> ")) if year % 4 == 0: print("The entered year is leap year ") else: print("The entered year is not a leap year ")
Output:
Run 1:
Enter the year :--> 1996
The entered year is leap year
Run 2:
Enter the year :--> 1997
The entered year is not a leap year