A python dictionary is something I have never seen in other languages like C++ or Java programming. It holds key-value pairs.
>>> roots={25:5,16:4,9:3,4:2,1:1}
>>> type(roots)
<class ‘dict’>
>>> roots[9]
3
A dictionary is mutable, and we can also use a comprehension to create it.
>>> roots={x**2😡 for x in range(5,0,-1)}
>>> roots
{25: 5, 16: 4, 9: 3, 4: 2, 1: 1}