1def isLeapYear (year):
2 if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0):
3 true
4 else:
5 false
1if year % 4 == 0:
2 if year % 100 == 0:
3 if year % 400 == 0:
4 print("leap year")
5 else:
6 print("not a leap year")
7 else:
8 print("leap year")
9else:
10 print("not a leap year")