Types Flashcards
1
Q
Sequence Type
A
Specifies a collection of items ordered from left to right.
aka String Type
2
Q
Index
A
Character position. First character is 0
3
Q
Container
A
Groups related values together and references other objects
4
Q
List
A
Container created by surrounding a sequence of variables with brackets
5
Q
Element
A
List item
6
Q
Mutable
A
Programmer can add, modify, remove elements
7
Q
Method
A
Instructs object to perform some action
8
Q
Tuple
A
Immutable list
9
Q
Set
A
Unordered collection of unique elements
10
Q
Dictionary
A
Container used to describe associative relationships
Key associated with immutable value
11
Q
KeyError
A
Occurs if a dictionary statement attempts to execute for a key that does not exist