1 Answers
The difference between list, tuple, set, and the dictionary is:
- The list is a collection that is ordered and changeable. Allows duplicate members.
- A tuple is a collection that is ordered and unchangeable. Allows duplicate members.
- Set is a collection that is unordered and unindexed. No duplicate members.
- Dictionary is a collection that is unordered, changeable, and indexed. No duplicate members.