Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the primary difference between a tuple and a list in computer science?
Tuples are ordered and can contain repeated elements. Lists are unordered and can not contain repeated elements.
Tuples can contain repeated elements. Lists can not.
Tuples are ordered. Lists are not.
In the case of tuples we can randomly access any component in a constant amount of time. In the case of lists we can randomly access only two things in a constant amount of time: the first component in the list (the head) and the list made up of everything except the first component (the tail).
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!