1.

Write a Python code to check whether a given year is leap year or not?Leap year or not:Program code:

Answer»

n = int (input(“Enter any year”))

if (n % 4 = = 0):

print “Leap year”

else:

print “Not a Leap year”

Output:

Enter any year 2001

Not a Leap year



Discussion

No Comment Found