title: Iterating through a list inside a dictionary in Python for an API call
body: <p>I am pretty new to Python. I have a dictionary that looks like this, with a list inside:</p>
  <pre><code>&quot;detail&quot;: {'items': [['123','item1'],['345','item2']]
  </code></pre>
  <p>and I am trying to use the first item in the list for an API call</p>
  <pre><code>    for x in y[&quot;detail&quot;][&quot;items&quot;]:
          url = &quot;https://link/list-of-items/&quot; + x[0]
  
      payload = {}
      headers = {
          'Authorization': 'Bearer ' + (parameter['Parameter']['Value'])
      }
          
      response = requests.request(&quot;GET&quot;, url, headers=headers, data=payload)
      json_object = json.loads(response.text)
  </code></pre>
  <p>I have been trying to get the response to be the details of both <code>item1</code> and <code>item2</code> using  <code>x[0]</code>, the first index. How would I go about in doing that?</p>