This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Question: | |
| def __init__(self,text,choices,answer): | |
| self.text=text | |
| self.choices=choices | |
| self.answer=answer | |
| def checkAnswer(self,answer): | |
| return self.answer == answer | |
| class Quiz: | |
| def __init__(self,questions): | |
| self.questions=questions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Question: | |
| def __init__(self,text,choices,answer): | |
| self.text=text | |
| self.choices=choices | |
| self.answer=answer | |
| def checkAnswer(self,answer): | |
| return self.answer == answer | |
| class Quiz: | |
| def __init__(self,questions): | |
| self.questions=questions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Question: | |
| def __init__(self,text,choices,answer): | |
| self.text=text | |
| self.choices=choices | |
| self.answer=answer | |
| def checkAnswer(self,answer): | |
| return self.answer == answer | |
| class Quiz: | |
| def __init__(self,questions): | |
| self.questions=questions |