Computer Science, asked by shorna7225, 12 hours ago

Which of the following is true about List data type in Python?

Answers

Answered by rahul123437
0

Elements of lists are stored in contagious memory location is true about List data type in Python.

  • To implement a list, a contiguous array of references to other objects is used. Python stores a pointer to this array and the  length of the array is stored in the list header structure.
  • This ensures that the indexing of the list is independent of the size of the list or the index value.
  • A listing is an ordered set of values,wherein every cost is recognized via way of means of an index.
  • The values that make up a listing are referred to as its factors.
  • Lists are just like strings,which might be ordered units of characters, besides that the factors of a listing could have any type.
Similar questions