[Tutor] Why isn't my simple if elif script not working?

Steven D'Aprano steve at pearwood.info
Wed Jul 18 15:09:40 CEST 2012


Alexandre Zani wrote:

> What you want to write is this:
> 
> elif name == "John Cleese" or name == "Michael Palin":

elif name in ("John Cleese", "Michael Palin"):

is better.


-- 
Steven



More information about the Tutor mailing list