Whats the best way to validate each values in dictionary with out using any external libraries
for example dict = {"A":"some_string",
"B":12,
"C":83,
"D":56.......so on}
I have to validate such that if key is A
then value should be string
and
if key is B
then value should be int
and ranges from 1 to 20
if key is C
then value should be int
and ranges from 1 to 100
so based on key, validation for values also varies...
any shorter way to do it ? my dictionary size is huge
validations[key](value)