This means nothing unless you specify what arrays you mean - and from the above, it seems like you are talking about the theoretical understanding of arrays and linked lists as taught in first year computer science, the usefulness of which I question.
In Python (tagged), the statements you outline are pretty much all wrong.
In Python, list is a built-in type. The Python array class from the array package is a different type which needs to be imported, and uses a list internally. Both are objects, and both are memory managed and of equal efficiency, mutable (can be changed) and sortable, indexed, etc.
Point 7 is not even true outside of Python: The conceptual definition of a List is that it is ordered. What you described is a Collection.
Data types, in fact, are very subjective from one language to another, and it's not worth spending too much time on them unless you are getting very involved in the implementation of a programming language yourself, or specifically writing C (where "array" does not exist, and "list" is whatever you want it to be).
Python is a very good language for getting things done with - but computer science basics do not apply when discussing data types.
The more fruitful part of introductory computer science will come from algorithms, state machines, formal logic, and set theory, which are applicable in many more domains and across languages. Enjoy :-)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This means nothing unless you specify what arrays you mean - and from the above, it seems like you are talking about the theoretical understanding of arrays and linked lists as taught in first year computer science, the usefulness of which I question.
In Python (tagged), the statements you outline are pretty much all wrong.
In Python,
list
is a built-in type. The Pythonarray
class from thearray
package is a different type which needs to be imported, and uses alist
internally. Both are objects, and both are memory managed and of equal efficiency, mutable (can be changed) and sortable, indexed, etc.Point 7 is not even true outside of Python: The conceptual definition of a List is that it is ordered. What you described is a Collection.
Data types, in fact, are very subjective from one language to another, and it's not worth spending too much time on them unless you are getting very involved in the implementation of a programming language yourself, or specifically writing C (where "array" does not exist, and "list" is whatever you want it to be).
Python is a very good language for getting things done with - but computer science basics do not apply when discussing data types.
The more fruitful part of introductory computer science will come from algorithms, state machines, formal logic, and set theory, which are applicable in many more domains and across languages. Enjoy :-)