title: How to maintain the order of an existing dictionary python
body: <p>I created a dictionary, and later I'd like in insert it's values to a list. I know that lists keep their order, but I think that dictionaries are not. I know there is OrderedDict, but from what I understand it keeps the order upon addition to the dictionary. Here, I have already the complete dictionary, without adding to it.</p>
  
  <p>I'm using python 3.6</p>
  
  <p>My script is:</p>
  
  <pre><code>dirs_dictionary = {"user_dir_treatment":"/home/dataset_1/treatment",
                             "user_dir_control":"/home/dataset_1/control"}
  
  empty_list = []
  
  for key, value in dirs_dictionary.items()):
      empty_list.append(dirs_dictionary[key])
  </code></pre>
  
  <p>So eventually, I'd like that the list will contain the values in the same order as they are in the dictionary, meaning that the first item in the list is <code>"/home/dataset_1/treatment"</code>, and the second is <code>"/home/dataset_1/control"</code>.</p>
  
  <p>How do I maintain the order of my dictionary?</p>