# power tools medium

First Word Used Twice

The debate judge buzzes the FIRST word a speaker repeats. 🎙️

You get the speech as a list of words. Print the first word whose count reaches 2 as you tally along, or no repeats.

Example:

Input: words = ["we", "like", "to", "like", "move"] Output: like

Tallying as you read, "like" is the first word whose count reaches 2, on its second appearance.

💡 need a hint?

pt-first-word-twice.py🔒 given lines are locked — write your code in between
loading...