Exercise 10: Numbered Long Words Until stop — Possible Solution ==================================================================== sentence = "the quick brown fox and a lazy dog stop jumps never" count = 0 for word in sentence.split(): if word == "stop": break if len(word) < 4: continue count += 1 print(f"{count}. {word}") print("numbered words:", count) Example run: 1. quick 2. brown 3. lazy numbered words: 3 WHY THIS WORKS AS AN ANSWER ------------------------------ The stop check comes before the length check: 'stop' is 4 letters long, so it would otherwise be numbered as a long word. The break ends the loop for good, so 'jumps' and 'never' are never looked at. A short word reaches continue and goes straight to the next word. The counter increases only after both checks, so it counts exactly the words that get printed; had it been placed at the top of the loop, the numbering would also count the skipped short words and show 2, 3 and 7 instead of 1, 2 and 3.