Learn practical skills, build real-world projects, and advance your career
Created 3 years ago
Assignment 2 - Hash Tables in Python
This assignment is a part of the course "Data Structures and Algorithms in Python".
In this assignment, we will implement Python dictionaries from scratch using hash tables.
project='python-hash-tables'
Problem Statement - Python Dictionaries and Hash Tables
In this assignment, we will recreate Python dictionaries from scratch using data structure called hash table. Dictionaries in Python are used to store key-value pairs. Keys are used to store and retrieve values. For example, here's a dictionary for storing and retrieving phone numbers using people's names.
phone_numbers = {
'Aakash' : '9489484949',
'Hemanth' : '9595949494',
'Siddhant' : '9231325312'
}
phone_numbers
{'Aakash': '9489484949', 'Hemanth': '9595949494', 'Siddhant': '9231325312'}
You can access a person's phone number using their name as follows: