title: Get a list of name as an input from the user and make the first letters in caps and print each word as a list?
body: <p><code>like so</code></p>
  <pre><code>n = int(input(&quot;Enter total number of names:&quot;))
  
  Name = []
  
  print(&quot;\n Enter names: &quot;)
  
  for i in range(0, n):
     x = input()
  Name.append(x)
  
  print(&quot;\n Names are:&quot;)
  
  for i in range(0, n):
  
      print(Name[i].capitalize())
  </code></pre>
  <p>`<strong>getting an index error: list index out of range</strong></p>