how to make a triangle in python turtle

Do you want to know the details about “how to make a triangle in python turtle”. If yes, you’re in the correct tutorial.

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()
import turtle
s = turtle.getscreen()
q = turtle.Turtle()
q.fd(100)
q.rt(90)
q.fd(100)
q.lt(-130)
q.fd(150)

Final Words

I hope this post helps you to know about “how to make a triangle in python turtle”. If you have any doubts regarding this tutorial please let us know via the comment section. Share this tutorial with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment