Python DSA

Hash Tables

Hash table implementation

Hash Tables

A hash table is a data structure that implements an associative array abstract data type.

Python Dictionary

hash_table = {}
hash_table['key1'] = 'value1'
hash_table['key2'] = 'value2'
print(hash_table['key1'])