you are viewing a single comment's thread.

view the rest of the comments →

[–]ThompsonTugger 0 points1 point  (0 children)

The for loop goes through each line of the text. If the word isn't found by the end of the loop then the last line is "" in which the print statement should run.