Qusनिम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?
A. List
B. Dictionary
C. Set
D. None of the Above
Solution
C. SetExplanation
Set in Python:
- A set is an unordered collection of unique elements.
- It does not allow duplicate values, which means each element in a set must be unique.
- Sets are mutable, meaning you can add or remove elements once a set is created.
- Sets are typically used when the existence of elements is more important than the order or how many times they occur.