title: How to import or include data structures (e.g. a dict) into a Python file from a separate file
body: <p>I know I can include Python code from a common file using <code>import MyModuleName</code> - but how do I go about importing just a dict?</p>
  
  <p>The problem I'm trying to solve is I have a dict that needs to be in a file in an editable location, while the actual script is in another file. The dict might also be edited by hand, by a non-programmer.</p>
  
  <p><strong>script.py</strong></p>
  
  <pre><code>airportName = 'BRISTOL'
  myAirportCode = airportCode[airportName]
  </code></pre>
  
  <p><strong>myDict.py</strong></p>
  
  <pre><code>airportCode = {'ABERDEEN': 'ABZ', 'BELFAST INTERNATIONAL': 'BFS', 'BIRMINGHAM INTERNATIONAL': 'BHX', 'BIRMINGHAM INTL': 'BHX', 'BOURNMOUTH': 'BOH', 'BRISTOL': 'BRS'}
  </code></pre>
  
  <p>How do I access the <code>airportCode</code> dict from within <strong>script.py</strong>?</p>