File size: 970 Bytes
b7a7f32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from typing import List
from pydantic import Json

quizAnswers: List[Json] = [
    {
        "student_id": 3,
        "quiz_id": 11,
        "marks_obtained": 20,
        "options_selected": {
            "25": 1,
            "26": 2,
            "27": 0,
            "28": [0, 2, 3],
        },
    },
    {
        "student_id": 2,
        "quiz_id": 11,
        "marks_obtained": 20,
        "options_selected": {
            "25": 1,
            "26": 0,
            "27": 2,
            "28": [0, 2],
        },
    },
    {
        "student_id": 4,
        "quiz_id": 11,
        "marks_obtained": 12,
        "options_selected": {
            "25": 1,
            "26": 0,
            "27": 2,
            "28": [0, 2],
        },
    },
    {
        "student_id": 3,
        "quiz_id": 1,
        "marks_obtained": 32,
        "options_selected": {
            "1": [2, 3],
            "6": 1,
            "15": [1, 4],
            "18": 3,
        },
    },
]