# Python program to check if the input year is a leap year or not
year = 2000
# To get year (integer input) from the user
# year = int(input("Enter a year: "))
if (year % 4) == 0:
if (year % 100) == 0:
if (year % 400) == 0:
# if block of 400
print("{0} is a leap year".format(year))
else:
# else block of 400
print("{0} is not a leap year".format(year))
else:
# else block of 100
print("{0} is a leap year".format(year))
else:
# else block of 4
print("{0} is not a leap year".format(year))
Answers
Answered by
0
Answer:
Wrong written
Explanation:
Similar questions
Social Sciences,
25 days ago
Art,
25 days ago
Science,
25 days ago
Math,
1 month ago
Social Sciences,
1 month ago
Math,
8 months ago
Social Sciences,
8 months ago