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

Fábio Santos fabiosantosart at gmail.com
Fri Jun 14 04:35:33 EDT 2013


On 14 Jun 2013 09:09, "Nick the Gr33k" <support at superhost.gr> wrote:
> >>> print(name and month and year)
> ijkl
>
> Seems here is returning the last string out of 3 strings, but have no
clue why Python doing this.
>

You have been told this above.

All languages kind of do that. Ever seen this command on a shell?

mkdir directory && cd directory

The shell evaluated the first and if that was truthy it went on to evaluate
the second and return that.

Now. You've been told countless times that you won't get anything from "not
in (a and b and c)", nor from "not in (a or b or c)".

Also you have been shown this link and I feel you really need to read it.

http://slash7.com/2006/12/22/vampires/

Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130614/4e9abc8a/attachment.html>


More information about the Python-list mailing list