Skip to content

Instantly share code, notes, and snippets.

@timtjtim
timtjtim / count lines in file (python)
Created December 31, 2013 20:26
Count lines in a file (python)
nol = sum(1 for line in open("PrimeOutput1.txt", "r+"))