On Wed, Jul 18, 2012 at 6:09 AM, Steven D'Aprano <st...@pearwood.info> wrote: > 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 > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor
Better how? _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor