# power tools medium

The Vote Counter

Class president election! One vote per line-entry, winner takes all (no ties today). 🗳️

You get the votes as a list of names. Print the winner.

Example:

Input: votes = ["mia", "leo", "mia", "kai", "mia"] Output: mia

Tallying gives mia=3, leo=1, kai=1mia has the most votes.

💡 need a hint?

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