how to make a triangle in python turtle
import turtle
t=turtle.Turtle()
for i in range(5):
t.begin_fill()
t.forward(75)
t.right(144)
t.end_fill()
4
6
import turtle
board = turtle.Turtle()
board.forward(100) # draw base
board.left(120)
board.forward(100)
board.left(120)
board.forward(100)
turtle.done()
Thank you!
6
0
Are there any code examples left?
New code examples in category Python