import turtle as tt def turtle_02(): """Draw a triangle""" # Settings tt.bgcolor("black") tt.color("magenta") tt.pensize(3) tt.speed(1) # Triangle tt.backward(140) tt.left(45) tt.forward(200) tt.right(90) tt.forward(200) tt.right(135) tt.forward(140) tt.exitonclick()