I am working on a dictionary that maps names to votes received. I need associate the name with the most votes, assigning it to the variable win.
So far:
vote = {}
for key in vote:
vote(max(key)) = win
How do I associate win to the name, because I believe my error now is that I am associating it to the highest number.
Thank you for your help.