Tutorials Point


  Python Basics
  Python Advanced
  Python Useful References
  Python Useful Resources
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

Python dictionary type() Function


previous next AddThis Social Bookmark Button


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:

  • dict: This is the dictionary.

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 Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names