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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!