<reponame>weedjy/snippets
def file_len(fname):
    with open(fname) as f:
        for i, l in enumerate(f):
            pass
    return i + 1

print(file_len('train.csv'))
print(file_len('test.csv'))
