Skip to main content

Posts

Showing posts with the label 6. Write a Python program to check whether a year is leap year or not.

ads1

Python Condition , 6. Write a Python program to check whether a year is leap year or not.

6. Write a Python program to check whether a year is leap year or not. Solution :-  year = int(input("Enter the Year :- ")) if(year % 4 == 0):     print("Leap Year") else :     print("Not a Leap Year") Output :-

ads2