Guest User

Untitled

a guest
Jun 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def leap_year(y):
  2. if y % 400 == 0:
  3. return True
  4. if y % 100 == 0:
  5. return False
  6. if y % 4 == 0:
  7. return True
  8. else:
  9. return False
  10. print(leap_year(1900))
  11. print(leap_year(2004))
Add Comment
Please, Sign In to add comment