[Tutor] True and 1 [was Re: use of the newer dict types]
Jim Mooney
cybervigilante at gmail.com
Sat Jul 27 07:30:17 CEST 2013
> if len(snark): print(True)
>
> True
Actually, that should have been len(snarklist), but the result is the same.
Or to get even sillier:
len([True]) == True
True
More information about the Tutor
mailing list