class QuizBrain:
    def __init__(self, q_list):
        self.question_number = 0
        self.score = 0
        self.question_list = q_list

    def still_has_questions(self):
        if self.question_number < len(self.question_list):
            return True
        else:
            return False

    def next_question(self):
        current_question = self.question_list[self.question_number]
        self.question_number += 1
        answer = input(f"Q{self.question_number}: {current_question.text} (True or False): ").title()
        current_answer = current_question.answer

        self.check_answer(answer, current_answer)

    def check_answer(self, answer, current_answer):
        if answer == current_answer:
            print("Correct")
            self.score += 1
        else:
            self.score - 1
            print("Wrong")
        print(f"Current score is: {self.score}/{self.question_number}")
        print('\n')
