Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def is_leap_baby(day,month,year):
  2. leap_year2 = ((year/4.) - (year/4)) == 0
  3. l eap_year3 = ((year/400.) - (year/400)) != 0
  4. leap_year4 = ((year/100.) - (year/100)) == 0
  5. if leap_year4 and leap_year3:
  6. return False
  7. if leap_year2 == 0:
  8. if month == 2:
  9. if day == 29:
  10. return True
  11. else:
  12. return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement