def set(aMap, key, value):
    bucket = get_bucket(aMap, key)
    i, k, v = get_slot(aMap, key)

    if i >= 0:
        # the key exists, replace it
        bucket[i] = (key, value)
    else:
        # the key does not, append to create it
        bucket.append((key, value))
Sets the key to the value, replacing any existing value.
dataset/ETHPy150Open Akagi201/learning-python/lpthw/ex39/hashmap.py/set