Try the code below. <br>
<br>
#-------------------------------------------------<br>
list=["airplane","car","boat"]<br>
select = None<br>
while select not in list:<br>
   select=raw_input("Which vehicle?")<br>#-------------------------------------------------<br>
<br>
Cyril<br>
<br><div><span class="gmail_quote">On 8/20/05, <b class="gmail_sendername">Viper Jack</b> <<a href="mailto:nomail@nomail.com">nomail@nomail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>i'm new to python programming so excuseme if the question is very stupid.<br>here the problem.<br>this code work<br><br>list=["airplane"]<br>select=vars<br>while select != list[0]:<br>   select=raw_input("Wich vehicle?")
<br><br>but i want check on several object inside the tuple so i'm trying this:<br><br>list=["airplane","car","boat"]<br>select=vars<br>while select != list[0] or list[1] or list[2]:<br>   select=raw_input("Wich vehicle?")
<br><br>but loops and doesn't want work.<br>I have tried with other methods (for) but nothings.<br>I haven't find nothing on this topic, so i asked here.<br>Thanks in advance.<br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">
http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>