Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 4

120 bytes added, 14:01, 15 June 2017
PART 3 - Dictionaries
help(dict_york.values)
dict_york.values()
</source>All keys can be viewed by using the dictionary.keys() function. This function provides a '''list''' containing all keys<br><br>::#To demonstrate this fact, issue the following:<source>
help(dict_york.keys)
dict_york.keys()
</source>::#Armed with this information, We can retrieve individual values from a dictionary by provide the key associated with the value::*For example, issue the following:<source>
dict_york['Address']
dict_york['Postal Code']
13,420
edits