function put(table, key, value): # separate chaining

   index = hash_index(key, table.bucket_count)
   for i, (k, v) in enumerate(table.buckets[index]):
      if k == key:
        table.buckets[index][i] = (key, value)
        return
   table.buckets[index].append((key, value))


 function get(table, key):
   index = hash_index(key, table.bucket_count)
   for (k, v) in table.buckets[index]:
      if k == key:

        return v
   report an unsupported case  # key not found
