Chapter 11 Data Collection Flashcards
1
Q
A Python list cannot grow or shrink in size.
A
False
2
Q
A list must contain at least one item.
A
False
3
Q
Where mathematicians use subscripting, computer programmers use:
A
Indexing
4
Q
The method that adds a single item to the end of a list is:
A
append
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 [].