Question: in Python please provide code that i can edit. Thnks Add a subclass FillInQuestion to the question hierarchy of Section 10.1. Such a question is
in Python please provide code that i can edit. Thnks
Add a subclass FillInQuestion to the question hierarchy of Section 10.1. Such a question is constructed with a string that contains the answer, surrounded by _ _, for example, the inventor of Python was _Guido van Rossum_. The question should be displayed as 6 pts
The inventor of Python was _______
Below is the program that runs the modified class Question:
##
# Demonstrate the FillInQuestion class.
#
# Create the question and expected answer.
q = FillInQuestion()
q.setText("The inventor of Python was _Guido van Rossum_")
# Display the question and obtain user's response.
q.display()
response = input("Your answer: ")
print(q.checkAnswer(response))
Your code with comments
A screenshot of the execution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
