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.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to