# searching medium

The Word With the Most O's

The owl choir needs a word to hoot — the more o's, the better the hoot! 🦉

You get a list of words (at least one). Print the word containing the most letter o's. On a tie, the first such word wins.

Example:

Input: words = ["cat", "foot", "balloon", "dog"] Output: foot

Counting o's gives cat=0, foot=2, balloon=2, dog=0. "foot" and "balloon" tie at 2, so the first one, "foot", wins.

💡 need a hint?

srch-most-os-word.py🔒 given lines are locked — write your code in between
loading...