title: Need some coding to input inside my image?
body: <p>this is what my program should look like:</p>
  
  <p><img src="https://i.stack.imgur.com/rX79m.png" alt="Expected"></p>
  
  <pre><code>def main():
  
      from graphics import GraphWin, Point, Rectangle
  
      win= GraphWin("Apartment Displayer",700,400)
  
      p1=Point(40,50)
  
      p2=Point(100,130)
  
      rec=Rectangle(p1,p2)
  
      rec.setFill("cyan")
  
      rec.draw(win)
  
      p3=Point(100,30)
  
      p4=Point(280,130)
  
      rec=Rectangle(p3,p4)
  
      rec.setFill("yellow")
  
      rec.draw(win)
  
      p5=Point(280,30)
  
      p6=Point(550,130)
  
      rec=Rectangle(p5,p6)
  
      rec.setFill("tan3")
  
      rec.draw(win)
  
      p7=Point(75,130)
  
      p8=Point(200,320)
  
      rec=Rectangle(p7,p8)
  
      rec.setFill("green3")
  
      rec.draw(win)
  
      p9=Point(200,130)
  
      p10=Point(220,320)
  
      rec=Rectangle(p9,p10)
  
      rec.setFill("tan")
  
      rec.draw(win)
  
      p11=Point(220,130)
  
      p12=Point(550,225)
  
      rec=Rectangle(p11,p12)
  
      rec.setFill("cyan3")
  
      rec.draw(win)
  
      p13=Point(220,225)
  
      p14=Point(275,320)
  
      rec=Rectangle(p13,p14)
  
      rec.setFill("yellow3")
  
      rec.draw(win)
  
      p15=Point(275,225)
  
      p16=Point(550,320)
  
      rec=Rectangle(p15,p16)
  
      rec.setFill("green")
  
      rec.draw(win)
  
      p17=Point(550,30)
  
      p18=Point(570,320)
  
      rec=Rectangle(p17,p18)
  
      rec.setFill("tan")
  
      rec.draw(win)
  
      s=input("close Window?")
  
      win.close()
  
  main()
  </code></pre>
  
  <p>This is what i have, but don't know how to put the names inside my rectangles as shown in my link. Please can someone help me???</p>
  
  <p>Thank You...</p>