Initially I was going to create a list of the words in the line with 25 words or more and then iterate through that as well. This is what I have so far:
text = 'text.txt'
handle= open(text)
line_count=0
for line in handle:
line_count = line_count + 1
word_count = 0
split_line = line.split()
for word in split_line:
word_count = word_count + 1
if count == 25:
print(line)
I want to be able to create a new line so that the text doesn't exceed the borders of the screen.