Question: Implement a sub-class called text which will write text on the screen. Your class should be defined with the line below. class text(shape): A sub-class

Implement a sub-class called text which will write text on the screen.

Your class should be defined with the line below.

class text(shape): """A sub-class for writing text""" 

You will need to add a variable to store the text string.

You need to write two functions:

get_text()

set_text()

You should write code to produce an image which also writes text on the screen.

Notes:

You can use the command turtle.write() to write the text in your .draw() function.

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!