-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathword.py
More file actions
25 lines (21 loc) · 972 Bytes
/
Copy pathword.py
File metadata and controls
25 lines (21 loc) · 972 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
from Question import Question
question_prompts = ["what is the correct meaning of render?\n(a)deliver\n(b)please\n\n",
"what is the correct meaning of delimit?\n(a)punish\n(b)define\n\n",
"what is the correct meaning of resume?\n(a)pause\n(b)continue\n\n",
"what is the correct meaning of wary?\n(a)worried\n(b)careful\n\n",
"what is the correct meaning of voracious?\n(a)satiable\n(b)insatiable\n\n"]
questions = [
Question(question_prompts[0], "a"),
Question(question_prompts[1], "b"),
Question(question_prompts[2], "b"),
Question(question_prompts[3], "b"),
Question(question_prompts[4], "b"),
]
def run_test(questions):
score = 0
for question in questions:
answer = input(question.prompt)
if answer == question.answer:
score += 1
print("you got " + str(score) + "/" + str(len(questions)) + "correct")
run_test(questions)