A quiz league keeps two files. One lists the players. The other is a log of points, written down each time someone scores. The two files only share an id column.
| file | columns |
|---|---|
| players | id, name (in any order, maybe with extra columns) |
| points | id, points (in any order, maybe with extra columns) |
Task: write player_totals(players_path, players_text, points_path, points_text). It returns a dictionary mapping each player's name to their total points, as an int.
0.id doesn't belong to any player.points value is a whole number, possibly negative (penalties).The starter code includes write_text and already uses it to save both files: players_text into players_path, and points_text into points_path. import csv is already at the top.