title: Repetition of input, with while and arrays
body: <p>I'm trying to do a code in which he requests the length of the word(n, n &lt;= 100000) and then the word itself, until the n equals zero and ends the processing; the output requests all of the words being reversed.</p>
  
  <pre><code>Entrance         Output  
  
       7           odacova        
     avocado        esuoh
       5
     house
       0
  </code></pre>
  
  <p>Here's the code that I was trying to do:</p>
  
  <pre><code>numeros = []
  word = []
  for i in numeros:
     while i &lt;= 100000:
        n = int(input())  #always ask the length and the word
        s = str(input())
        numeros.append(n)
        word.append(s)
        if i == 0:
           for w in word:
              print(w[::-1])   #output with the words reversed
              break
  </code></pre>