Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78450

Re: Leap year

X-Received by 10.182.115.229 with SMTP id jr5mr34280229obb.38.1411979274623; Mon, 29 Sep 2014 01:27:54 -0700 (PDT)
X-Received by 10.140.102.177 with SMTP id w46mr6539qge.15.1411979274550; Mon, 29 Sep 2014 01:27:54 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!uq10no123596igb.0!news-out.google.com!i10ni45qaf.0!nntp.google.com!dc16no80168qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Mon, 29 Sep 2014 01:27:54 -0700 (PDT)
In-Reply-To <72778568-0205-47c5-8b60-163b09823170@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:c3cc:5710:d934:cd2b:486c:d4cb; posting-account=ung4FAoAAAC46zhHJ0Nsnuox7M5gDvs_
NNTP-Posting-Host 2a02:120b:c3cc:5710:d934:cd2b:486c:d4cb
References <vocc2a17rl5odoasq7ae317aju8de9ejcn@4ax.com> <72778568-0205-47c5-8b60-163b09823170@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <d7e02a2b-d0df-4c4c-8ea5-b276d65452e4@googlegroups.com> (permalink)
Subject Re: Leap year
From wxjmfauth@gmail.com
Injection-Date Mon, 29 Sep 2014 08:27:54 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:78450

Show key headers only | View raw


------

>>> 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'
>>>

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Leap year Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-26 23:49 -0400
  Re: Leap year Gene Heskett <gheskett@wdtv.com> - 2014-09-27 00:08 -0400
  Re:Leap year Dave Angel <davea@davea.name> - 2014-09-27 05:07 -0400
  Re: Leap year Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-09-28 16:22 +1000
  Re: Leap year Rustom Mody <rustompmody@gmail.com> - 2014-09-28 23:58 -0700
    Re: Leap year wxjmfauth@gmail.com - 2014-09-29 01:27 -0700
    Re: Leap year wxjmfauth@gmail.com - 2014-09-29 08:05 -0700

csiph-web