+ 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()
3rd Feb 2018, 9:45 AM
MANISH JHA
MANISH JHA - avatar