from data import question_data
from question_model import Question
from quiz_brain import QuizBrain


question_bank = []
for question in question_data:
    q = Question(question["text"], question["answer"])
    question_bank.append(q)


# print(question_bank[0].answer)
quiz = QuizBrain(question_bank)

while quiz.still_has_questions():
    quiz.next_question()

print("You've completed the quiz")
print(f"Your final score was: {quiz.score}/{quiz.question_number}")




9117b0c16a5e2b2083f862715535708dd3a673b1
<mask token>

<mask token>
for question in question_data:
    q = Question(question['text'], question['answer'])
    question_bank.append(q)
<mask token>
while quiz.still_has_questions():
    quiz.next_question()
print("You've completed the quiz")
print(f'Your final score was: {quiz.score}/{quiz.question_number}')

<mask token>
question_bank = []
for question in question_data:
    q = Question(question['text'], question['answer'])
    question_bank.append(q)
quiz = QuizBrain(question_bank)
while quiz.still_has_questions():
    quiz.next_question()
print("You've completed the quiz")
print(f'Your final score was: {quiz.score}/{quiz.question_number}')

from data import question_data
from question_model import Question
from quiz_brain import QuizBrain
question_bank = []
for question in question_data:
    q = Question(question['text'], question['answer'])
    question_bank.append(q)
quiz = QuizBrain(question_bank)
while quiz.still_has_questions():
    quiz.next_question()
print("You've completed the quiz")
print(f'Your final score was: {quiz.score}/{quiz.question_number}')

from data import question_data
from question_model import Question
from quiz_brain import QuizBrain


question_bank = []
for question in question_data:
    q = Question(question["text"], question["answer"])
    question_bank.append(q)


# print(question_bank[0].answer)
quiz = QuizBrain(question_bank)

while quiz.still_has_questions():
    quiz.next_question()

print("You've completed the quiz")
print(f"Your final score was: {quiz.score}/{quiz.question_number}")



