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
Get step-by-step solutions from verified subject matter experts
