A certainl part of an if() structure never gets executed.

Chris Angelico rosuav at gmail.com
Fri Jun 14 04:50:04 EDT 2013


On Fri, Jun 14, 2013 at 6:41 PM, Nick the Gr33k <support at superhost.gr> wrote:
> On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote:
>
>>>>> 'Parker' and 'May' and '2001'
>>
>> '2001'
>
>
> But why?
>
> that expression should return True since all stings are not empty.

It does. Not the bool value, but it does return a true value.

ChrisA



More information about the Python-list mailing list