[Tutor] print items in a list...

Kent Johnson kent37 at tds.net
Thu Apr 16 20:02:21 CEST 2009


On Thu, Apr 16, 2009 at 1:37 PM, Spencer Parker <inthefridge at gmail.com> wrote:
> I have a script that is putting elements into a list.  Now instead of adding
> a for blah in blah statement...is there an easy way to print out the
> elements in a list that is similar to this?  I don't have an absolute length
> on the size of the list either since it changes depending on what I am
> searching for.  I have it finding the elements through a regular expression
> and then putting those into a list.  Separate lists for each item I am
> searching for...if it find this put it into this list...else put into this
> list.  Then I want to write each list to a text file.  trying to clean up
> messy code for the most part.

I don't understand the question. An example of what you are doing, or
your current code, would help.

Kent


More information about the Tutor mailing list