Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_leap_baby(day,month,year):
- leap_year2 = ((year/4.) - (year/4)) == 0
- l eap_year3 = ((year/400.) - (year/400)) != 0
- leap_year4 = ((year/100.) - (year/100)) == 0
- if leap_year4 and leap_year3:
- return False
- if leap_year2 == 0:
- if month == 2:
- if day == 29:
- return True
- else:
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement