What is the difference between a set and a dictionary in Python?