Leap year

wxjmfauth at gmail.com wxjmfauth at gmail.com
Mon Sep 29 10:27:54 CEST 2014


------

>>> def z(y):
...     if y <= 1582: # or <
...         return 'not a leap year, Julian calendar'
...     else:
...         return 'process, Gregorian calendar'
...         
>>> z(1300)
'not a leap year, Julian calendar'
>>> z(2014)
'process, Gregorian calendar'
>>>



More information about the Python-list mailing list