Question: Write an Object Oriented Python program using INHERITANCE from the class dict similar but richer in functionality than the Python program at: http://www.cse.unt.edu/~tarau/teaching/PL/PY/mdict.py The main
Write an Object Oriented Python program using INHERITANCE from the class "dict" similar but richer in functionality than the Python program at: http://www.cse.unt.edu/~tarau/teaching/PL/PY/mdict.py The main goal of your class is to allow a set of values to be associated to a key, rather than a single value. The class should support the usual "for x in" and "x in" operations, like "mdict" does. Besides the methods exposed by mdict, you should also add an methods to: 1. delete a key and all its values 2. delete a specific value from the set of values associated to a key 3. clear the dictionary of all its contents 4. iterate over all key-value pairs contained in the dictionary We do not specify the exact names and arguments of the methods in the API, that is left to your creativity. 5. A test set containing 3 examples of use for each method should also be provided.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
