Answers for "hash table in python"

2

hash table in python

// a hash table in python is called a dict and can hold any hashable type as key and everything as value
// you can create one using the literal syntax like {key: value}:
dic = {"a": 1, "b": 2}
Posted by: Guest on January-19-2022

Python Answers by Framework

Browse Popular Code Answers by Language