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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!