text: import turtle #module that draw things
  import math
  
  def draw_plotter():
      turtle.setworldcoordinates(-200, -200, 1000, 1000)
      background = turtle.Screen() #create the background
      background.bgcolor ("#005ce6") #background color
      
      plot = turtle.Turtle()
      plot.shape("arrow")
      plot.color("black","red")
      plot.speed(50)
      x = 0
      y = 0
      T = 5 #triangle sides, counter backward
      R = T #counter forward
      L = 100 #length of side
      h = math.sqrt((L)**2-(L/2)**2) #height small triangle
      n = 0 #level counter
      plot.up()
      #plot.setpos(x+L,y)
      plot.down()
      I = T #number of interaction
      c = "red"
      d = "black"
      
      
      while I > 0:
          n = n + 1
          while T > 0:
              plot.up()
              plot.setpos(x+L,y)
              plot.down()
              plot.begin_fill()
              plot.setpos(x,y)
              plot.left(60)
             
          
              plot.forward(L)
              
              plot.right(120)
              plot.forward(L)
             
              plot.left(60)
              plot.end_fill()
              x = x + L
              plot.color(d, c)
              T = T - 1
      
          T = R - n
          
          x = L/2*n
          y = h*(n)
          
          I = I - 1
      
  
      background.exitonclick() #close background
  draw_plotter()
  