title: printing each letter of a word + another letter - python
body: <p>I am doing this python problem where I have to get a word input from the user and then flip the word backwards and print the letters out backwards, adding a letter each time. I've made it so I can flip the word backwards. I know I can use the</p>
  
  <pre><code>for c in word
  </code></pre>
  
  <p>statement but I'm unsure how to make it so I can add a letter each time.</p>
  
  <p>Below are the instructions and my code.</p>
  
  <blockquote>
    <p>The childrens' song Bingo is from 1780!</p>
    
    <p>In the song, each verse spells the name "Bingo", removing one letter
    from the name each time.</p>
    
    <p>​ When
    writing this program, you'll need to work out a few things:</p>
    
    <p>You need a way to reverse the dog's name. You need a loop to build up
    the dog's name letter by letter. Each time you go through the loop you
    add another letter to the reversed name.</p>
  </blockquote>
  
  <p>An example:</p>
  
  <p>Name: bingo o </p>
  
  <p>og </p>
  
  <p>ogn </p>
  
  <p>ogni </p>
  
  <p>ognib </p>
  
  <p>And ognib was their name-o </p>
  
  <p>Code I have:</p>
  
  <pre><code>name = input("Name: ")
  reversed_text = ''
  last_index = len(name) - 1
  for i in range(last_index, -1, -1):
    reversed_text += name[i]
  print(reversed_text)
  </code></pre>
  
  <p>Thanks</p>