title: Loop : print a word and delete one letter each time by iteration
body: <p>I'm looking for some help on an exercise.
  Let's say I have to call a <code>variable = &quot;house&quot;</code> and the goal is by using the for loop, print the word and delete one letter each time using iteration.</p>
  <p>The result expected is :</p>
  <pre><code>house
  hous
  hou
  ho
  h
  </code></pre>
  <p>This is what I've done :</p>
  <pre><code>variable = &quot;house&quot;
  
  for i in range(len(variable)):
      print(variable[:-i])
  </code></pre>
  <p>But the result of that is</p>
  <pre><code>hous
  hou
  ho
  h
  </code></pre>
  <p>Is there an astuce to print the first world &quot;house&quot; inside the loop ?
  Thanks</p>