title: Python: check for data type in list
body: <p>Is there a way to check if an instance of a specific data type is present in a list / dictionary, <em>without explicitly checking every element / key?</em></p>
  
  <p>I suspect the answer is no. If it does exist, though, I imagine it would be similar to the way you can use the <code>in</code> operator to search for specific elements / keys, like this:</p>
  
  <pre><code>3 in [1, 2, 3] # =&gt; True
  </code></pre>
  
  <p>except you'd be checking for an instance of a data type rather than a some specific value, like this:</p>
  
  <pre><code>int in [1,"a", 3.4] # =&gt; True
  </code></pre>
  
  <p>Any ideas?</p>