Why dict.get(key) instead of dict[key]?
<p>Today, I came across the <code>dict</code> method <code>get</code> which, given a key in the dictionary, returns the associated value.</p>

<p>For what purpose is this function useful?  If I wanted to find a value associated with a key in a dictionary, I can just do <code>dict[key]</code>, and it returns the same thing:</p>

<pre><code>dictionary = {"Name": "Harry", "Age": 17}
dictionary["Name"]
dictionary.get("Name")
</code></pre>

<p>Thank you very much in advance! </p>
