title: Why does this loop have only one iteration instead of the number of iterations entered by the user?
body: <p>I am trying to ask the user to enter any number and then ask the user to enter any names, then store this input in a list.</p>
  <p>However, when I enter any number, it asks to enter name only one time and shows the output in list:</p>
  <pre><code>def main():
      # a = 4
      a = input(&quot;Enter number of players: &quot;)
      tmplist = []
      i = 1
      for i in a:
          pl = input(&quot;Enter name: &quot; )
          tmplist.append(pl)
          
      print(tmplist)
  
  if __name__== &quot;__main__&quot;: 
      main()
  </code></pre>
  <p>output:</p>
  <pre><code>Enter number of players: 5
  Enter name: Tess
  ['Tess']
  </code></pre>
  <p>The <code>for</code> loop should run 5 times and user entered 5 values get stored in a list.</p>