def number_of_lines(): fhand = open('/cxldata/datasets/project/mbox-short.txt') inp = fhand.read() fhand.close() count = 0 for c in inp: if c == '\n': count += 1 return count

def number_of_lines(): fhand = open('/cxldata/datasets/project/mbox-short.txt') inp = fhand.read() fhand.close() count = 0 for c in inp: if c == '\n': count += 1 return count

0% completed