+ 1
try this..:>
import turtle
def draw_triangle():
window = turtle.Screen()
window.bgcolor("green") #background color
tom = turtle.Turtle()
tom.forward(100)
tom.left(120)
tom.forward(100)
tom.left(120)
tom.forward(100)
window.exitonclick() #to exit
draw_triangle()