Robotics & Artificial Intelligence

Which of the following data types does not allow duplicate values in Python?

  1. Lists
  2. Dictionaries
  3. Tuples
  4. Sets

Python Funda

2 Likes

Answer

Sets

Reason — A set in Python is a built-in data type that represents an unordered collection of unique elements. It automatically removes duplicate elements when present.

Answered By

2 Likes


Related Questions