On 17Aug2014 23:51, Terry--gmail <terry.kemme...@gmail.com> wrote:
I'm copy and pasting from Ninja-IDE, which I thought was created specifically to do python programming...so I never checked to see if it needs to have the tab set to enter 4 spaces, as it appeared visually to be doing that. But, I don't remember whether I used their tab or manually typed 4 spaces. SO, I have typed the lines below in manually:

for line_number, row in enumerate(catalog2):
   for col, item in enumerate(row):
       if lens[col] < len(item):
       lens[col] = len(item)

How's that?

All good except for the last line, which would normally be indented further than the "if".

Cheers,
Cameron Simpson <c...@zip.com.au>

This information is absolutely reliable; I read it on Usenet somewhere.
        - sc...@festival.ed.ac.uk (Scott Larnach)
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to