Answers for "display triangle 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

Python Answers by Framework

Browse Popular Code Answers by Language