When I test my code I get the correct output but check50 shows errors in print_winner function.
:( print_winner prints winner of election when one candidate wins over all others print_winner did not print winner of election
:( print_winner prints winner of election when some pairs are tied print_winner did not print winner of election
Any help is appreciated,
My Code: https://pastebin.com/G8avSiCg
EDIT: Fixed it but don't understand what was wrong with the old code.
Solved it here: https://pastebin.com/GEpuXWEQ