python to tell how many lines in a text file code example
Example: python how to count the lines in a file
# Basic syntax:
count = len(open('/path/to/the/file.ext').readlines())
# Basic syntax:
count = len(open('/path/to/the/file.ext').readlines())