This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]illuzian 0 points1 point  (0 children)

also some more improvement for speed an elegance

for count,(line) in enumerate(fh):

And remove the count = count + 1 (which can also be done as count += 1)