Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_leap(year):
- if year % 4 == 0 and year % 100 != 0: return True
- if year % 4 == 0 and year % 400 == 0: return True
- return False
- def is_leap2(year):
- if year % 4 == 0:
- if year % 100 != 0: return True
- elif year % 400 == 0: return True
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement