title: Is it possible to access nth element of a dict in python
body: <p>I have a snippet of code in which the function foo returns a dictionary.</p>
  
  <pre><code>def foo():
      # do something here
      # get data from web
      return {
          "book": {ln : wd for ln, wd, _ in data["book"]},
          "note": {ln : wd for ln, wd, _ in data["note"]},
      }
  
  def bar():
      data = foo()
      # how to access 0th element of data["book"]
      # data["book"][0] doesnt work
  </code></pre>
  
  <p>The question is how can I access its first element?</p>