<div><h2id="dictionary"><ahref="#dictionary"name="dictionary">#</a>Dictionary</h2><pre><codeclass="python language-python hljs"><dict> = {key_1: val_1, key_2: val_2, ...} <spanclass="hljs-comment"># Use `<dict>[key]` to get or set the value.</span>
</code></pre></div>
<pre><codeclass="python language-python hljs"><view> = <dict>.keys() <spanclass="hljs-comment"># Coll. of keys that reflects changes.</span>
<view> = <dict>.values() <spanclass="hljs-comment"># Coll. of values that reflects changes.</span>
<pre><codeclass="python language-python hljs"><view> = <dict>.keys() <spanclass="hljs-comment"># Collection of keys that reflects changes.</span>
<view> = <dict>.values() <spanclass="hljs-comment"># Collection of values that reflects changes.</span>
<view> = <dict>.items() <spanclass="hljs-comment"># Coll. of key-value tuples that reflects chgs.</span>
</code></pre>
<pre><codeclass="python language-python hljs">value = <dict>.get(key, default=<spanclass="hljs-keyword">None</span>) <spanclass="hljs-comment"># Returns default if key is missing.</span>