Section 7 Chapter 38 - Lists Flashcards
1
Q
List
A
An ordered collection of elements in which the same element may appear more than once (in contrast to a set)
2
Q
Array
A
A static data structure that contains an ordered collection of elements. It has a fixed number of elements
3
Q
How python lists work when inserting
A
Python lists are actually linked lists with each element containing a pointer to the next element. When a element is inserted memory is allocated from the heap and the adjacent pointers are changed