13,420
edits
Changes
→PART 3 - Dictionaries
:::*The script should contain '''three''' functions:
:::::'''create_dictionary():'''<ddol><dlli>'''accepts''' two lists as arguments keys and values, '''combines''' these lists together to '''create''' a dictionary</dlli><dlli>'''returns a dictionary''' that has the keys and associated values from the lists</dlli></ddul>:::::'''split_dictionary():'''<ddul><dlli>'''accepts''' a single dictionary as a argument and '''splits''' the dictionary into two lists, keys and values</dlli><dlli>'''returns two lists''': return keys, values</dlli></ddul>
:::*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