Chapter 11 Data Collection Flashcards

1
Q

A Python list cannot grow or shrink in size.

A

False

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

A list must contain at least one item.

A

False

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

Where mathematicians use subscripting, computer programmers use:

A

Indexing

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

The method that adds a single item to the end of a list is:

A

append

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

Briefly define a tuple and how it is different from a list.

A

A tuple is similar to a list in that it is a sequence that can hold objects, but it is different from a classic python list because it is not mutable. It also is formed using () instead of [].

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