SyntaxFix
Write A Post
Hire A Developer
Questions
fname = "feed.txt" feed = open(fname, 'r') num_lines = len(feed.splitlines()) num_words = 0 num_chars = 0 for line in lines: num_words += len(line.split())