What is a dictionary in Python and how to use it?