Skip to main content

One post tagged with "Programming"

View All Tags

Mastering Python Dictionaries, Key to Efficiency

· 11 min read

The special thing about dictionaries is the way they are implemented. Hash-table-like structure makes it easy to check for existence - which means that we can easily determine if a specific key is present in the dictionary without needing to examine every element. The Python interpreter can just go to the location key and check if the key is there.