# CSE 142, Summer 2008 (Kimberly Todd) # Displays the longest line in the file with the given name. def input_stats(filename): input = open(filename) longest = "" for line in input: if len(line) > len(longest): longest = line print "Longest line =", len(longest) print longest # main input_stats("carroll.txt")