In this problem we build the list of dictionaries that was given to us in the previous problem.
Accept a positive integer n that represents the number of students in the class. n blocks of input follow. Each block is made up of six lines and contains the details of one student. Create a dictionary corresponding to each student. All keys should be strings, and the value types and the order of the inputs are:
| Line number | Key | Type of value |
|---|---|---|
| 1 | Name | String |
| 2 | City | String |
| 3 | SeqNo | Integer |
| 4 | Mathematics | Integer |
| 5 | Physics | Integer |
| 6 | Chemistry | Integer |
Append each dictionary to a list named scores_dataset, in the order in which the students appear in the input. Be careful about the types: if a value is specified as an integer, convert it.
You do not have to print anything. The list scores_dataset is checked for you.
Example
Input:
1
Devika
Bengaluru
0
85
100
79
scores_dataset:
[{'Name': 'Devika', 'City': 'Bengaluru', 'SeqNo': 0,
'Mathematics': 85, 'Physics': 100, 'Chemistry': 79}]
The input is read for you. Assign the answers to scores_dataset.
You do not need to print anything — the values you assign to those names are what gets checked, in that order.
Input
1
Devika
Bengaluru
0
85
100
79
Output
[{'Name': 'Devika', 'City': 'Bengaluru', 'SeqNo': 0, 'Mathematics': 85, 'Physics': 100, 'Chemistry': 79}]