title: python error: TypeError: list indices must be integers or slices, not list
body: <p>I am writing this <code>python</code> code and I'm getting an error. I've searched through the internet and StackOverflow but nothing works for me!</p>
  
  <p>The error:
      <code>TypeError: list indices must be integers or slices, not list (line 7)</code></p>
  
  <p>My code:</p>
  
  <pre><code>products = [
      [
          'name',
          'id',
          'number in stock',
          'price ($)'
      ],
      ['iPhone', '1', '100', '999']
  ]
  
  def instore(item):
      for x in products:
          if products[x][0] == item:
              print(products[x][0] + ': \n id: ' + products[x][1] + ' In Stock: ' + products[x][2])
  </code></pre>