Lawrence Oluyede ha scritto:
[...]
>  def isleap(year):
>      return (year % 4 == 0) and ((year % 100 != 0) or (year % 400 == 0))
> 
> non testata :D

 >>> import calendar
 >>> calendar.isleap(2008)

^_^

max.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a