python how to draw triangle

Solutions on MaxInterview for python how to draw triangle by the best coders in the world

showing results for - "python how to draw triangle"
Chris
20 Nov 2016
1import turtle
2 
3
4 
5turtle.forward(100) # draw base
6 
7turtle.left(120)
8turtle.forward(100)
9 
10turtle.left(120)
11turtle.forward(100)
12 
13turtle.done()