title: Storing Python dictionaries
body: <p>I'm used to bringing data in and out of Python using CSV files, but there are obvious challenges to this. Are there simple ways to store a dictionary (or sets of dictionaries) in a JSON or <a href="https://docs.python.org/3/library/pickle.html" rel="noreferrer">pickle</a> file?</p>
  <p>For example:</p>
  <pre><code>data = {}
  data ['key1'] = &quot;keyinfo&quot;
  data ['key2'] = &quot;keyinfo2&quot;
  </code></pre>
  <p>I would like to know both how to save this, and then how to load it back in.</p>