Add a method to the Turtle class to draw an equilaterall triangle.

Note: By Turtle class this means a new sub class like SmartTurtle or ConfusedTurtle.


```
class MyTurtle(Turtle):

#Assumes the turtle starts looking straight up
def drawTri(self, size=60):
self.turn(30)
for i in range(3):
self.forward(size)
self.turn(120)
```

Computer Science & Information Technology

You might also like to view...

Explain the primary reason that project managers monitor project work activities.

What will be an ideal response?

Computer Science & Information Technology

Sound adds dimension to your computing experience.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A fix for a software problem might be available as a download and is known as an update, patch, or ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

32-bit operating system is capable of supporting up to _______ of RAM. ?Are these megabytes, gigabytes? -Michael

a. 2 b. 4 c. 8 d. 64

Computer Science & Information Technology