Answers for "how to make a triangle in python turtle"

3

how to make a star 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()
Posted by: Guest on March-09-2020
1

how to make a triangle in python turtle

import turtle
 
board = turtle.Turtle()
 
board.forward(100) # draw base
 
board.left(120)
board.forward(100)
 
board.left(120)
board.forward(100)
 
turtle.done()
Posted by: Guest on January-29-2021

Code answers related to "how to make a triangle in python turtle"

Python Answers by Framework

Browse Popular Code Answers by Language