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 values() Method


previous next AddThis Social Bookmark Button


Description:

This class method returns a list of all the values available in a given dictionary.

Syntax:

dict.values()

Parameters:

Here is the detail of parameters:

  • NA

Example:

#!/usr/bin/python

dict = {'Name': 'Zara', 'Age': 7}

print "Value : %s" %  dict.values()

This produces following result:

Value : [7, 'Zara']


previous next Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names