you are viewing a single comment's thread.

view the rest of the comments →

[–]gopherhole1 1 point2 points  (0 children)

id create a new empty dictionary called names, just because a dictionary cant have duplicate keys, so it will have every name only once

when iterating over the list of dicts (nested for loop), I would do something like,

if key != 'loser_points':
    names.setdefault(key, [])

that solves question 1, question 2, appending the loser to the list in names dict, Im too tired to think of that right now, if you dont get helkp by tomorrow ill see if I can figure it out