title: Why do I get "IndexError: list index out of range" when trying to add values to a nested list?
body: <p>I'm trying to put some data to my nested list.</p>
  <pre class="lang-py prettyprint-override"><code>n_list = []
  n = int(input())
  
  for i in range(0, n):
      name = input()
      n_list[i].append(name)
      val = int(input())
      n_list[i].append(val)
  
  print(n_list)
  </code></pre>