Answered You can hire a professional tutor to get the answer.

QUESTION

Each line in the response le has the student ID, student name, and then a letter response for each question.

Each line in the response le has the student ID, student name, and then a letter response for each question. We'll be writing a function to read the le later, but for this part, assume that the information about a student's responses has been stored in a list. The items in the list are all strings, starting with the ID, the student name, and then all the single letter responses. For example, here's a list for student named xyzzy, whose student ID is 345, and who answered 4 multiple choice questions: ['345','xyzzy','a','a','c','b'] . i have to write function named index_student that takes a list like this, and returns a record, that is, a dictionary with the following elds: 'ID', 'Name', and 'Responses'. The values for 'ID' and 'Name' are simply the rst two items in the list. You should use your function index_responses() (from Question 1) to make a dictionary out of the rest of the list, and use it as the value for the 'Responses' key.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question