title: Dictionary with nested list TypeError: string indices must be integers
body: <p>My json response come back with this dictionary.</p>
  
  <pre><code>data = {"offset": 0, "per-page": 1, "total": 548, "language": "en", 
  "odds-type": "DECIMAL", "overall-staked-amount": 23428.63548, 
  "profit-and-loss": 4439.61471, "events": [{"id": 1042867904480016, 
  "name": "Gael Monfils vs Daniil Medvedev", "sport-id": 9, "sport- 
  url": "tennis", "sport-name": "Tennis", "start-time": "2019-02- 
  16T14:29:00.000Z", "finished-dead-heat": false, "markets": [{"id": 
  1042867905130015, "name": "Moneyline", "commission": 0, "net-win- 
  commission": 0, "profit-and-loss": -0.59999, "stake": 0.59999, 
  "selections": [{"id": "1042867905220015_BACK", "runner-id": 
  1042867905220015, "name": "Daniil Medvedev", "side": "BACK", "odds": 
  3.0, "stake": 0.59999, "commission": 0, "profit-and-loss": -0.59999, 
  "bets": [{"id": 1043769075060320, "offer-id": 1043764555430020, 
  "matched-time": "2019-02-16T16:16:18.936Z", "settled-time": "2019- 
  02-16T16:26:01.878Z", "in-play": true, "odds": 3.0, "stake": 
  0.59999, "commission": 0, "commission-rate": 2.0, "profit-and-loss": 
  -0.59999, "status": "PAID"}]}], "net-win-commission-rate": 0.02}]}]}
  </code></pre>
  
  <p>I am unable to get the attribute value for <code>overall-staked-amount</code> and inside the events list I cannot get name from <code>events</code> list. using list comprehension or a for loop.</p>
  
  <p>Here's my code.</p>
  
  <p><strong>list comp</strong></p>
  
  <pre><code>overall_staked = [d['overall-staked-amount'] for d in data]
  
  print(overall_staked)
  </code></pre>
  
  <p><strong>for loop</strong></p>
  
  <pre><code>for d in data:
      overall_staked = d['overall-staked-amount']
      name = d['name']
      print(overall_staked,name)
  </code></pre>
  
  <p>I receive an error <code>TypeError: string indices must be integers</code>
  what am I doing wrong or need to do?</p>