# accepts a file name as a parameter and # reports the longest line in the file. def stats(filename): longest = "" for line in open(filename): if len(line) > len(longest): longest = line print("Longest line =", len(longest)) print(longest)