# puzzle gauntlet medium

The Popular Vote

One snack got MORE THAN HALF of all votes — a true majority. Find it. 🍿

You get the votes. Print the majority snack (guaranteed to exist).

Example:

Input: votes = ["pizza", "taco", "pizza", "pizza"] Output: pizza

"pizza" gets 3 of the 4 votes, more than half — the majority winner.

💡 need a hint?

pg-popular-vote.py🔒 given lines are locked — write your code in between
loading...