While loop with "or"? Please help!
Paul Rubin
http
Thu Jan 25 07:57:15 EST 2007
More information about the Python-list mailing list
Thu Jan 25 07:57:15 EST 2007
- Previous message (by thread): Do I need Python to run Blender correctly?
- Next message (by thread): While loop with "or"? Please help!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Peter Otten <__peter__ at web.de> writes: > > while not usrinp.lower() in "yn": > > But note that 'in' performs a substring search and therefore "yn" and "" > would be accepted as valid answers, too. Oh right, that's a recent change to the language, I think. OK: while not usrinp.lower() in list("yn"): ...
- Previous message (by thread): Do I need Python to run Blender correctly?
- Next message (by thread): While loop with "or"? Please help!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list