Thanks to all for the help.
--
http://mail.python.org/mailman/listinfo/python-list
Viper Jack 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
Try the code below.
#-
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
Viper Jack wrote:
> but i want check on several object inside the tuple so i'm trying this:
>
> list=["airplane","car","boat"]
Note that this is actually a list, not a tuple as your subject suggests.
For the difference, take a look at this:
http://www.python.org/doc/faq/general.html#why-are-there-