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

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

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

Python Answers by Framework

Browse Popular Code Answers by Language