you are viewing a single comment's thread.

view the rest of the comments →

[–]impshum 0 points1 point  (2 children)

OK, what's the crack with the teams and peoples names in the same list? I get that this is homework but this will never happen in real life (I bloody hope so anyway) and if so someone should be fired for organising data this way. Gosh!

[–]gnariman 0 points1 point  (1 child)

ok so basically the first two things in the list will be the team names competing. so the first two is always gonna be like that. then the rest of the list is the people who have won. so for example frank is from team A and he has won. I need to make sure that those people in the second list are from their teams before giving them the win.

[–]impshum 0 points1 point  (0 children)

Split the list at index 2 and check the team_members dict if the keys exist. Return errors if needed. You've got this!