Arithmetic with Boolean values
Hans Mulder
hansmu at xs4all.nl
Tue Aug 14 12:32:38 EDT 2012
On 12/08/12 22:13:20, Alister wrote:
> On Sun, 12 Aug 2012 19:20:26 +0100, Mark Lawrence wrote:
>
>> On 12/08/2012 17:59, Paul Rubin wrote:
>>>> which can be simplified to:
>>>> for x in range(len(L)//2 + len(L)%2):
>>>
>>> for x in range(sum(divmod(len(L), 2))): ...
>>>
>>>
>> So who's going to be first in with "and thou shalt not count to 4..."?
>
> Five is right out
Neither count thou two, excepting that thou then proceed to three
-- HansM
More information about the Python-list
mailing list