Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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).
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!