title: Extracting Data from OrderedDict
body: <p>So i have a firebase database</p>
  
  <p><a href="https://i.stack.imgur.com/zDXrM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zDXrM.png" alt="firebase database"></a></p>
  
  <p>and this is my code to get specific data</p>
  
  <pre><code>db = firebase.database()
  test = db.child("Users").order_by_child("IDNumber").equal_to(222333123).get().val()
  
  print(test)
  </code></pre>
  
  <p>then the result returns as an OrderedDict</p>
  
  <blockquote>
    <p>OrderedDict([('Ays', {'Ays': 'Baby', 'IDNumber': 222333123})])</p>
  </blockquote>
  
  <p>i want to extract the data and have Ays = Baby and IDNumber = 222333123 as two separate variables. i tried using .items() and putting it into list but i can't seem to separate it. is there any other way?</p>