Function to count number of lines from a text files
def count_lines(filename): with open(filename, 'r') as f: return len(f.readlines())
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment