Re: [newbie]search string in tuples

2005-08-21 Thread Viper Jack
Thanks to all for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: [newbie]search string in tuples

2005-08-20 Thread Scott David Daniels
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

Re: [newbie]search string in tuples

2005-08-20 Thread Cyril Bazin
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

Re: [newbie]search string in tuples

2005-08-20 Thread Brian Victor
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-