Lists Flashcards

1
Q

List

A

Lists store multiple elements of different data types under the same identifier.
There can be a variable number of elements - they never get full.
It is a data structure which is a sequence

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

Append

A

With .append (), you can add items to the end of an existing list object

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

2D List

A

Where lists are filled with other lists (2D surfaces or records)

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

How do you access an individual list?

A

list = my2DList[4]
To access an individual element, we use this syntax:
list[5][0]
This would get the first element ([0]), of the sixth list ([5]).

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

Individual element?

A

To access an individual element, we use this syntax:
list[5][0]

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