#!/usr/local/bin/python3 """ Reads afile and returns the number of lines, words, and characters - similar to the UNIX wc utility""" def main() : infile = open('someWords.txt') lines = infile.read().split("\n") l = len(lines) w = 0 c = 0 for line in lines : print(line) words = line.split() w += len(words) c += len(line) print(l, w, c) main()