Leap Year
Mon 21 July 2025
# created :20250629
https://share.google/camtfs4z8aiYAJNSz
year = 2000
2000 is a leap year
if (year % 400 == 0) and (year % 100 == 0):
print("{0} is a leap year".format(year))
elif (year % 4 ==0) and (year % 100 != 0):
print("{0} is a leap year".format(year))
else:
print("{0} is not a leap year".format(year))
Score: 5
Category: basics