Re: [Tutor] Having trouble with a dictionary of lists

2009-09-04 Thread William Witteman
On Fri, Sep 04, 2009 at 09:54:20AM -0700, Emile van Sebille wrote: >On 9/4/2009 9:09 AM William Witteman said... >>On Thu, Sep 03, 2009 at 11:26:35AM -0700, Emile van Sebille wrote: >> >>Thanks to Emile for pointing out the error. There were several other >>errors - initiating the counter in the l

Re: [Tutor] Having trouble with a dictionary of lists

2009-09-04 Thread Emile van Sebille
On 9/4/2009 9:09 AM William Witteman said... On Thu, Sep 03, 2009 at 11:26:35AM -0700, Emile van Sebille wrote: Thanks to Emile for pointing out the error. There were several other errors - initiating the counter in the loop (d'oh!), premature sorting of the dictionary by keys, not providing an

Re: [Tutor] Having trouble with a dictionary of lists

2009-09-04 Thread William Witteman
On Thu, Sep 03, 2009 at 11:26:35AM -0700, Emile van Sebille wrote: Thanks to Emile for pointing out the error. There were several other errors - initiating the counter in the loop (d'oh!), premature sorting of the dictionary by keys, not providing an index row for the output file, not returning a

Re: [Tutor] Having trouble with a dictionary of lists

2009-09-03 Thread Emile van Sebille
On 9/3/2009 11:01 AM William Witteman said... I am trying to create a CSV file of sorted similar lists, arranged so that differences are easily compared in a spreadsheet. I am encountering the following error, however: IndexError: list assignment index out of range On the indicated line below.

[Tutor] Having trouble with a dictionary of lists

2009-09-03 Thread William Witteman
I am trying to create a CSV file of sorted similar lists, arranged so that differences are easily compared in a spreadsheet. I am encountering the following error, however: IndexError: list assignment index out of range On the indicated line below. I understand the error, but I don't understand