Changes

Jump to: navigation, search

OPS435 Python Lab 4

6 bytes removed, 17:11, 15 June 2017
PART 3 - Dictionaries
dict_york.keys()
</source>
::#Study the output and then issue the following to Let's add another key:value pairto our dictionary:<source>
dict_york['Province'] = 'BC'
dict_york
dict_york.values()
dict_york.keys()
</source>'''WARNING: Dictionary keys must be '''unique'''. Attempting to add a key that already exists in the dictionary will overwrite the existing value for that key.<br><br>
::#To demonstrate, issue the following:<source>
dict_york['Province'] = 'ON'
13,420
edits

Navigation menu