< Back

Post Lab 27

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.