Q. Which of the following options will give an error if
set1={2,3,4,5}?
set1={2,3,4,5}?
β
Correct Answer: (D)
All of the above
Explanation: 1. Set1 is a python dictionary.
2. Dictionaries are used to store data values in key:value pairs.
3. Set1 has no key and value. That's why this will give an error.