title: Python Turtle graphics scale size and position
body: <p>I want some help on Python turtle graphics. I need to create a house which goes each time smaller in a <code>for ... in range()</code> loop.  </p>
  
  <p>I am creating scenery with three houses composed of basic turtle shapes. Is there a way, when I create a house with basic shapes, I can use a <code>for ... in range()</code> loop  to change the house position and make it a little smaller in size?</p>
  
  <p>What I am trying so far:</p>
  
  <pre><code>def house(turtlename,hs,xroof,xdoor,xwindow,ywindow):
   housesquare(turtlename,hs)
   turtlename.pu()
   turtlename.goto ((int(hs*xroof),int(hs*1)))
   turtlename.pd()
   housetriangle(turtlename,hs)
   turtlename.pu()
   turtlename.goto((int(hs*xdoor),0 ))
   turtlename.pd()
   housedoor(turtlename,hs*0.7,hs*0.3)
   turtlename.pu()
   turtlename.goto((int(hs*xwindow), int(hs*ywindow)))
   turtlename.pd()
   housesquare(turtlename,hs*0.3)
  </code></pre>
  
  <p>Using this code, I try to draw a second house with smaller size. The <code>goto()</code> command disturbs the whole shape and I have to do it everything manually but the task is to use <code>for ... in range(4)</code> to draw four houses, each to be smaller and placed at a little distance.</p>