< Back

Post Lab 25 - Default Values

Write a function called default_get(a_dictionary, key). If key exists in a_dictionary, you should return the values stored for key. If key does not exist in a_dictionary, a \(-1\) should be returned. The function should not use the dictionary get method.



Please write and test your code in the above textbox before Nov. 16th at noon.