title: How to draw three squares over lapping each other?
body: <p>I am wanting to draw three overlapping squares in Python using the turtle function similar to this:
  [1]: <a href="https://i.stack.imgur.com/lhfq2.png" rel="nofollow noreferrer">https://i.stack.imgur.com/lhfq2.png</a></p>
  <p>So far this is my code</p>
  <pre><code>
      from turtle import *
  
  
      # Set up canvas
      setup()
      title('three (3) squares of different colours') 
      speed('fastest') 
      pensize(4)
  
      # Draw the outline of square
      penup ()
      goto (0,0)
      pendown ()
      color ('black')
  
      for number in range (4):
      forward(150)
      left(90)
      penup()     
  
      # Fill square with colour
      goto (0,0)
      color('black', 'yellow')
      pendown()
      begin_fill()
  
      for number in range (4):
         forward(150)
         left(90)
         end_fill()
  
  
      hideturtle ()
      done ()
  </code></pre>