#-------------------------------------------------
list=["airplane","car","boat"]
select = None
while select not in list:
select=raw_input("Which vehicle?")
#-------------------------------------------------
Cyril
On 8/20/05, Viper Jack <[EMAIL PROTECTED]> wrote:
Hi all,
i'm new to python programming so excuseme if the question is very stupid.
here the problem.
this code work
list=["airplane"]
select=vars
while select != list[0]:
select=raw_input("Wich vehicle?")
but i want check on several object inside the tuple so i'm trying this:
list=["airplane","car","boat"]
select=vars
while select != list[0] or list[1] or list[2]:
select=raw_input("Wich vehicle?")
but loops and doesn't want work.
I have tried with other methods (for) but nothings.
I haven't find nothing on this topic, so i asked here.
Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
-- http://mail.python.org/mailman/listinfo/python-list