title: Accessing dict_keys element by index in Python3
body: <p>I'm trying to access a dict_key's element by its index:</p>
  
  <pre><code>test = {'foo': 'bar', 'hello': 'world'}
  keys = test.keys()  # dict_keys object
  
  keys.index(0)
  AttributeError: 'dict_keys' object has no attribute 'index'
  </code></pre>
  
  <p>I want to get <code>foo</code>.</p>
  
  <p>same with:</p>
  
  <pre><code>keys[0]
  TypeError: 'dict_keys' object does not support indexing
  </code></pre>
  
  <p>How can I do this?</p>