MCPcopy Index your code
hub / github.com/geekcomputers/Python / draw_triangle

Method draw_triangle

turtle_shapes_made.py:17–20  ·  view source on GitHub ↗
(self, length)

Source from the content-addressed store, hash-verified

15 self.turtle.left(90)
16
17 def draw_triangle(self, length):
18 for _ in range(3):
19 self.turtle.forward(length)
20 self.turtle.left(120)
21
22
23def main():

Callers 1

mainFunction · 0.95

Calls 2

leftMethod · 0.80
forwardMethod · 0.45

Tested by

no test coverage detected