4 ms·
Oh that's neat, though I might split this into two functions in most cases, no need to entangle opening the file and counting the words in a filelike object. T
by contravariant 7mo ago
Oh that's neat, though I might split this into two functions in most cases, no need to entangle opening the file and counting the words in a filelike object.
That's two neat tricks that I'm definitely adding to my bag of python trickery.