I want to count the number of words in each line of a text file (not including the first word) and then print the first word of the line with the most words in it?
At the moment I'm only able to count the number of words in the entire text file.
f = open("C:/Users/John Green/Desktop/follows.txt", "r")
for line in f:
namelist = line.split()
names += len(namelist)
f.close()
print(names)