Set – MCQ

Sets & Frozen Sets QB

In Python, a set is an unordered and mutable collection of unique elements. It is defined by enclosing a comma-separated sequence of elements inside curly braces {}. Sets are commonly used for tasks that involve checking membership, eliminating duplicate entries, and performing mathematical set operations like union, intersection, and difference.

6.Sets & Frozen Sets QB-Python V2