Question: I am trying to create a function that will create a dictionary of records for a local election, in python. On line 9 it is
I am trying to create a function that will create a dictionary of records for a local election, in python.
On line 9 it is saying "TypeError: list indices must be integers or slices, not str" but I thought that line 8 would be able to select items from an already defined list? https://gist.github.com/anonymous/46c3f592870cdef8f2e422e58d42fcf6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
