Answers for "how to draw a triangle in python"

1

python how to draw triangle

import turtle
 

 
turtle.forward(100) # draw base
 
turtle.left(120)
turtle.forward(100)
 
turtle.left(120)
turtle.forward(100)
 
turtle.done()
Posted by: Guest on April-18-2021
0

python turtle triangle

import turtle
s = turtle.getscreen()
q = turtle.Turtle()
q.fd(100)
q.rt(90)
q.fd(100)
q.lt(-130)
q.fd(150)
Posted by: Guest on October-26-2020

Code answers related to "how to draw a triangle in python"

Python Answers by Framework

Browse Popular Code Answers by Language