[Solved]-Python Create Testquestion Class Two Class Variables 1 Question 2 Answer Question Please C Q37270260
IN PYTHON ONLY !! Create the “TestQuestion” class. It will havetwo class variables: 1) a question and 2) the answer to thatquestion. Please create an accessor and mutator method for both ofthose variables, without which we would not be able to see orchange the question or the answer. There should be a constructormethod. We will also have a “ToString” or “__str__” method, whichwill print the question followed by its answer. The constructormethod has two parameters to allow the user to enter a testquestion and answer, or if no input/parameters are given then adefault question and answer should be supplied. The last method ofthe class, CheckAnswer, should take in a string as a parameter andcompare it to the answer. If the input was incorrect, it shouldreturn false. Otherwise, it should return true and then the mainshould tell the user they were correct and have them input a newtest question and answer.
Expert Answer
Answer to IN PYTHON ONLY !! Create the “TestQuestion” class. It will have two class variables: 1) a question and 2) the answer… . . .
OR

