Assigning to lists with arbitrary names

Stephen Boulet stephen.boulet at motorola.com
Tue Oct 9 21:34:09 CEST 2001


I can't quite figure out how to do this.

I have 100 text files in a directory: file00.txt to file99.txt.

I want to read each file in turn, parse it, and generate a list from
each file.

Here's the problem: I want to name each list list00 to list99. I don't
want to do list[0] to list[99] (since each list is actually a list of
lists, and I'd like to avoid a list of lists of lists  :).

Any idea how I can do this? Thanks.

-- Stephen



More information about the Python-list mailing list