Method Name:
values
Method Signature:
values()
Method Overview:
- Returns the values of the dictionary as dict_values instance.
- Contents of the dict_values changes when the dictionary is changed of a value.
Parameters:
None
Return Value:
A dictionary view of type dict_values.
Example:
# Example Python program that obtains # Create a dictionary # Obtain a dictionary view of the values famousConstants["pi"] = 3.1415
|
Output:
dict_values([3.14, '6.02214076 x 10^23 mol^-1', '186000 miles per second', '1.380650 x 10^-23 joule per kelvin']) |