IN PYTHON ONLY !!
Create an instance of the “TestQuestion” class in your “main”method. Allow the user to enter the test question and its answer,if they want to. If they do not, then continue by creating adefault question and answer. Please use the constructor methodshere. Then, using the “ToString” or “__str__” method, have it printout those variables as described above.
Lastly, call the “CheckAnswer” method and allow the user tocontinue attempting to answer the question until they are correct.If they are correct, the method should work as above and allow themto enter a new question and answer. You may either terminate theprogram
OR
OR