title: How can access Uploaded File in Google colab
body: <p>I'm new in python and I use <code>Google Colab</code> . I uploaded a <code>train_data.npy</code> into google Colab and then I want to use it . According to this link <a href="https://stackoverflow.com/questions/47212852/how-to-import-and-read-a-shelve-or-numpy-file-in-google-colaboratory">How to import and read a shelve or Numpy file in Google Colaboratory?
  </a></p>
  
  <p>when i run my code i face this error : </p>
  
  <blockquote>
    <p>TypeError: 'dict_keys' object does not support indexing</p>
  </blockquote>
  
  <p>Here is my code : </p>
  
  <pre><code>uploaded = files.upload()
  
  for fn in uploaded.keys():
    print('User uploaded file "{name}" with length {length} bytes'.format(
        name=fn, length=len(uploaded[fn])))
  
  with open('train_data.npy', 'w') as f:
  f.write(uploaded[uploaded.keys()[0]])
  </code></pre>
  
  <p>Thanks </p>