[Tutor] CSV file processing...

Kent Johnson kent37 at tds.net
Fri Mar 21 20:55:45 CET 2008


Spencer Parker wrote:
> That loop was some weird indentation that was caused when I pasted 
> it...it wasn't suppose to be indented like that...

Why is it there at all? The loop with range() is the one that is 
generating the data you want to store.

>     This is all that I get when I run it...
>     TypeError: not all arguments converted during string formatting

You didn't include that line before. That means you have more arguments 
(the length of row) than you have %s placeholders.

Kent


More information about the Tutor mailing list