# power tools advanced

The Class Champion

Chess season ends: one log of who won each game, one log of who lost each game. The champion has the best wins-minus-losses score (no ties at the top). ♟️

You get the wins name list and the losses name list. Print the champion.

Example:

Input: wins = ["mia", "leo", "mia", "kai"], losses = ["leo", "kai", "kai"] Output: mia

Tallying +1 per win and -1 per loss gives mia=2, leo=1-1=0, kai=1-2=-1mia has the best score.

💡 need a hint?

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