[Tutor] True and 1 [was Re: use of the newer dict types]

Jim Mooney cybervigilante at gmail.com
Sat Jul 27 07:24:03 CEST 2013


On 26 July 2013 21:41, Steven D'Aprano <steve at pearwood.info> wrote:

> True + 2
> => returns 3
>
> which depending on your perspective is either a terrible thing or a great
> thing.

I think the eminent logician, Lewis Carrol, would like it:

snark = "What I tell you three times is true."
snarklist = [snark, snark, snark]
if len(snark): print(True)

True

Jim


More information about the Tutor mailing list