Copyright © tutorialspoint.com

Python dictionary type() Function

previous next


Description:

This function returns the type of the passed variable. If passed variable is dictionary then it would return a dictionary type.

Syntax:

type(dict)

Parameters:

Here is the detail of parameters:

Example:

#!/usr/bin/python

dict = {'Name': 'Zara', 'Age': 7};
print "Variable Type : %s" %  type (dict)

This produces following result:

Variable Type : <type 'dict'>

previous next

Copyright © tutorialspoint.com