Is this common practice to avoid key not found in a dictionary
<p>I was wondering, whether the following style is a common practice to avoid key not found in a dictionary?</p>

<pre><code># default is 0
value = my_dic[100] if 100 in my_dic else 0
</code></pre>
