YouTip LogoYouTip

Att Dictionary Values

# Python2.x Python Dictionary values() Method [![Image 3: Python Dictionary](#) Python Dictionary](#) * * * ## Description The Python Dictionary values() function returns a list of all the values in the dictionary. ## Syntax The syntax for the values() method is: dict.values() ## Parameters * NA. ## Return Value Returns all the values in the dictionary. ## Example The following example demonstrates the usage of the values() function: ## Example #!/usr/bin/python tinydict ={'Name': 'Tutorial','Age': 7} print"Value : %s" % tinydict.values() The output of the above example is: Value : [7, 'Tutorial'] [![Image 4: Python Dictionary](#) Python Dictionary](#)
← Att Time AltzoneAtt Dictionary Update β†’