Changes

Jump to: navigation, search

OPS435 Python Lab 4

No change in size, 19:13, 15 June 2017
PART 3 - Dictionaries
:::*The script should contain '''three''' functions:
::::*:'''create_dictionary():'''<dd><dl>'''accepts''' two lists as arguments keys and values, '''combines''' these lists together to '''create''' a dictionary</dl><dl>'''returns a dictionary''' that has the keys and associated values from the lists</dl></dd>::::*:'''split_dictionary():'''<dd><dl>'''accepts''' a single dictionary as a argument and '''splits''' the dictionary into two lists, keys and values</dl><dl>'''returns two lists''': return keys, values</dl></dd>
:::*shared_values() accepts two dictionaries as arguments finds all values that are shared between the two dictionaries
:::*shared_values() '''returns a set''' containing ONLY values found in BOTH dictionaries
13,420
edits

Navigation menu