dabase
/
e
/
Counting lines in a file
Edit
RecentChanges
History
Preferences
Branchable
?
Discussion
This should do it:
print 'Line count: %s' % len(open(file).readlines())