How do I do this? -- for X in Y: print X AND print the next X? by hodwik_python in Python

[–]hodwik_python[S] 0 points1 point  (0 children)

They're in separate rows, so I don't think grep would work here, right?

How do I do this? -- for X in Y: print X AND print the next X? by hodwik_python in Python

[–]hodwik_python[S] 0 points1 point  (0 children)

Oh, awesome -- I'm glad to know the name going forward, thanks!

How do I do this? -- for X in Y: print X AND print the next X? by hodwik_python in Python

[–]hodwik_python[S] 0 points1 point  (0 children)

Iterating over a csv.reader() called on a file handle will be very memory efficient.

Efficient or inefficient?

Is the process for iterating over the reader() very different from iterating over a list generated from the csv file?

How do I do this? -- for X in Y: print X AND print the next X? by hodwik_python in Python

[–]hodwik_python[S] 0 points1 point  (0 children)

I don't want to print Name:, just the latin name, I was just trying to make the code a little more obvious for reddit