@ -262,7 +262,7 @@ index = <list>.index(<el>) <span class="hljs-comment"># Returns
</code></pre></div>
</code></pre></div>
<pre><codeclass="python language-python hljs">value = <dict>.get(key, default=<spanclass="hljs-keyword">None</span>) <spanclass="hljs-comment"># Returns default if key does not exist.</span>
<pre><codeclass="python language-python hljs">value = <dict>.get(key, default=<spanclass="hljs-keyword">None</span>) <spanclass="hljs-comment"># Returns default if key does not exist.</span>
value = <dict>.setdefault(key, default=<spanclass="hljs-keyword">None</span>) <spanclass="hljs-comment"># Same, but also adds default to dict.</span>
value = <dict>.setdefault(key, default=<spanclass="hljs-keyword">None</span>) <spanclass="hljs-comment"># Adds default to dict if key doesn't exist.</span>
<dict> = collections.defaultdict(<type>) <spanclass="hljs-comment"># Creates a dict with default value of type.</span>
<dict> = collections.defaultdict(<type>) <spanclass="hljs-comment"># Creates a dict with default value of type.</span>
<dict> = collections.defaultdict(<spanclass="hljs-keyword">lambda</span>: <spanclass="hljs-number">1</span>) <spanclass="hljs-comment"># Creates a dict with default value 1.</span>
<dict> = collections.defaultdict(<spanclass="hljs-keyword">lambda</span>: <spanclass="hljs-number">1</span>) <spanclass="hljs-comment"># Creates a dict with default value 1.</span>