How to check if a dict value contains a word/string? : <p>I have a simple condition where i need to check if a dict value contains say <code>[Complted]</code> in a particular key. </p>

<p><strong>example</strong> :</p>

<pre><code>'Events': [
                {
                    'Code': 'instance-reboot'|'system-reboot'|'system-maintenance'|'instance-retirement'|'instance-stop',
                    'Description': 'string',
                    'NotBefore': datetime(2015, 1, 1),
                    'NotAfter': datetime(2015, 1, 1)
                },
            ],
</code></pre>

<p>I need to check if the <code>Description</code> key contains <code>[Complted]</code> in it at starting. i.e </p>

<blockquote>
  <p>'Descripton': '[Completed] The instance is running on degraded
  hardware'</p>
</blockquote>

<p>How can i do so ?  I am looking for something like </p>

<pre><code>if inst ['Events'][0]['Code'] == "instance-stop":
      if inst ['Events'][0]['Description'] consists   '[Completed]":
              print "Nothing to do here"
</code></pre>
