Python: Validating each values in dictionary
<p>Whats the best way to validate each values in dictionary with out using any external libraries</p>

<pre><code>for example dict = {"A":"some_string",
                    "B":12,
                    "C":83,
                    "D":56.......so on}
</code></pre>

<p>I have to validate such that if key is <code>A</code> then value should be <code>string</code> and 
if key is <code>B</code> then value should be <code>int</code> and ranges from <code>1 to 20</code> 
if key is <code>C</code> then value should be <code>int</code> and ranges from 1 to 100
so based on key,  validation for values also varies... </p>

<p>any shorter way to do it ? my dictionary size is huge  </p>