
Implement index_by_id, which returns a dict mapping each id of records to the name of its last record.
index_by_id([(7, "kiwi"), (3, "fig")]){7: 'kiwi', 3: 'fig'}index_by_id([(5, "ann"), (2, "bo"), (5, "cy")]){5: 'cy', 2: 'bo'}index_by_id([]){}index_by_id.py
Run the tests to grade your code
Implement index_by_id, which returns a dict mapping each id of records to the name of its last record.
index_by_id([(7, "kiwi"), (3, "fig")]){7: 'kiwi', 3: 'fig'}index_by_id([(5, "ann"), (2, "bo"), (5, "cy")]){5: 'cy', 2: 'bo'}index_by_id([]){}index_by_id.py
Run the tests to grade your code
Variables will appear here