-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
37 lines (33 loc) · 752 Bytes
/
Copy pathtest.py
File metadata and controls
37 lines (33 loc) · 752 Bytes
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
class Test:
def __init__(self, testName, version, questions):
self.testName = testName
self.version = version
self.questions = questions
def __dir__(self):
return ['testName', 'version']
def randomizeTest():
# randomize questions
for q in self.questions:
#randeomize answers in questions
print (q)
'''
Json Structure
{
TestName: "",
version: 1.0,
Questions: [{
Question: "",
Answer: "",
MultipleChoice: ["","","",""]
}]
}
'''
class Question:
def __init__(self, question, answer, multipleChoice):
self.question = question
self.answer = answer
self.multipleChoice = multipleChoice
class Term:
def __init__(self, term, definition):
self.term = term
self.definition = definition