0
This class is not working properly plz help
class brain(): def __init__(self,q_list): self.question_number=q_list def next_question(self): current_question=self.question_list[self.question_number] input(f"q{self.question_number}: {current_question.text} (True/False)") op=brain(1) print(op.next_question())
4 Answers
+ 2
* there is no self.question_list
* you never passed a question list to the object
* current_question would need to have a text property
+ 2
1. Write your code in code playground, then link it in the question using + button
2. Explain what you want the code to do
3. Describe what went wrong
This way, you can get real help
0
So what do I pass there
0
Ok thanks