[Tutor] Hmmm...

Britt Green britt_green@hotmail.com
Thu, 08 Mar 2001 19:03:09 -0800


If I have a list, is there a way to extract from it the element that 
contains a string?

For example, if I have:

someVeggies = ['carrot', 'lettuce', 'rhubarb', 'peas']

how would i extract the element that matches the string 'carrot' or 'peas' 
and put that into another string?

Britt

--
It is pitch black. You are likely to be eaten by a grue.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com