This function returns the type of the passed variable. If passed variable is dictionary then it would return a dictionary type.
type(dict)
Here is the detail of parameters:
dict: This is the dictionary.
#!/usr/bin/python dict = {'Name': 'Zara', 'Age': 7}; print "Variable Type : %s" % type (dict)
This produces following result:
Variable Type : <type 'dict'>
Advertisement