title: Python: Print string in reverse
body: <p>Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters &quot;Done&quot;, &quot;done&quot;, or &quot;d&quot; for the line of text.</p>
  <p>Ex: If the input is:</p>
  <pre class="lang-none prettyprint-override"><code>Hello there
  Hey
  done
  </code></pre>
  <p>then the output is:</p>
  <pre class="lang-none prettyprint-override"><code>ereht olleH
  yeH
  </code></pre>
  <p>I have already the code like this.  I don't understand what I have done wrong. Please help.</p>
  <pre class="lang-py prettyprint-override"><code>word = str(input())
  the_no_word = ['Done', 'done', 'd']
  while word == &quot;Done&quot; and word == &quot;done&quot; and word == &quot;d&quot;:
      break
  print(word[-1::-1])
  </code></pre>