In Python, what built-in data type represents an unordered, mutable collection of unique elements with no duplicates?

Answer and explanation

Correct answer: C. `set`

  1. Step 1: A Python `set` is an unordered collection that enforces uniqueness among its elements using hashing.
  2. Step 2: Any duplicate values inserted into a set are automatically discarded.
Answer
`set`.
Why not the others: '`list`' is an ordered mutable sequence that permits duplicates; '`tuple`' is an ordered immutable sequence; '`dictionary`' stores key-value pairs.

Practise more Python Programming, Data Structures, Algorithms, Networks and Cybersecurity.

Free questions with an explanation for every one, and full timed Saudi Secondary School Certificate mock tests.