Q27Numerical4 Marks30 Apr 2023
words.txt is a text file with the following contents:
```
def do_something(filename):
f = open(filename, 'r')
maxword = f.readline().strip()
count = 1
for line in f:
word = line.strip()
if len(word) > len(maxword):
maxword = word
count = 1
elif len(word) == len(maxword):
count += 1
f.close()
return count
print(do_something('words.txt'))
```
What is the output of the following snippet of code?

Press Enter to check.