[Tutor] Finding items in a list

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Fri Feb 24 20:03:41 CET 2006



On Fri, 24 Feb 2006, Emily Patek wrote:

> I am trying to break apart a list into several smaller lists based on
> repeating nearly identical entries.  For example, every so often there
> is the word CLUSTER with a number after it, like CLUSTER 1.  I can find
> them one by one, but would like to do a while loop for while item in
> list = CLUSTER X.

Hi Emily,

Can you give a concrete example of the kind of input you're getting, and
what you'd like to get out?  Try constructing a small example so that we
on the tutor list can try to propose ways of getting the desired output.



More information about the Tutor mailing list