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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Array

A

A static data structure that contains an ordered collection of elements. It has a fixed number of elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly