This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def count_lines (filename): | |
f = file (filename) | |
count = 0 | |
for line in f.readlines (): | |
if not line.isspace (): | |
count += 1 | |
return count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am robert-ancell on github. | |
* I am robertancell (https://keybase.io/robertancell) on keybase. | |
* I have a public key whose fingerprint is 4978 51B5 D455 C606 543F 2B93 18EA A189 0F7C 882E | |
To claim this, I am signing this object: |