2 Program to check year is Leap Year or not in Python

Program:

num = int(input("Enter any year:"))



if num % 4 == 0:

    print(num ,"Year is Leap Year")

else:

    print(num ,"Year is Not a Leap Year")


Output:

Leap Year or not in Python

Previous
Next Post »