data = {} def put(key, value): data[key] = value def get(key): if key in data: return data[key] else: return None