What is the difference between a dictionary and a set in Python?
A dictionary is a collection of key-value pairs, where each key is unique and maps to a value. Dictionaries are defined using curly braces ({}) and are commonly used for storing and retrieving data by key. A set is a collection of unique elements, meaning it cannot contain duplicates. Sets are defined using curly braces ({}) or the