title: Check if type is dictionary
body: <p>How to check if variable is a python dictionary?</p>
  
  <pre><code>for k,v in dict.items():
      if type(v)==dict:
          print('This is a dictionary')
  </code></pre>
  
  <p>This code is not working</p>
  
  <p>Edited:</p>
  
  <p>Solved. type(v) is working. I made mistake when used name 'dict' for my dictionary. </p>