Checking if a variable is a dictionary

Sam samuel.progin at gmail.com
Thu Mar 6 13:15:17 CET 2008


Hello

if type(a) is dict:
    print "a is a dictionnary!"

++

Sam





More information about the Python-list mailing list