Python program to check leap year || Conditional Statement || Python

In this we are going to see a program to Check Whether a Year is Leap Year or Not in Python Programming Language.


year = int(input("Enter The Year : "))
if year % 100 == 0:
    if year % 400 == 0:
        print("The Year Is A Leap Year")
    else:
        print("The Year Is Not A Leap Year")
else:
    if year % 4 == 0:
        print("The Year Is A Leap Year")
    else:
        print("The Year Is Not A Leap Year")

# Coded By DHIRAJ SHELKE


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post