Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. def is_leap(year):
  2.   if year % 4 == 0 and year % 100 != 0: return True
  3.   if year % 4 == 0 and year % 400 == 0: return True
  4.   return False
  5.  
  6. def is_leap2(year):
  7.   if year % 4 == 0:
  8.     if year % 100 != 0: return True
  9.     elif year % 400 == 0: return True
  10.   return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement