Python Create Instance Testquestion Class Main Method Allow User Enter Test Question Answe Q37265660

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.