Types Flashcards

1
Q

Sequence Type

A

Specifies a collection of items ordered from left to right.

aka String Type

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

Index

A

Character position. First character is 0

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

Container

A

Groups related values together and references other objects

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

List

A

Container created by surrounding a sequence of variables with brackets

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

Element

A

List item

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

Mutable

A

Programmer can add, modify, remove elements

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

Method

A

Instructs object to perform some action

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

Tuple

A

Immutable list

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

Set

A

Unordered collection of unique elements

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

Dictionary

A

Container used to describe associative relationships

Key associated with immutable value

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

KeyError

A

Occurs if a dictionary statement attempts to execute for a key that does not exist

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