Glossary Chpt 8 Flashcards

1
Q

object

A

Something a variable can refer to. For now, you can use “object” and “value” interchangeably

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

sequence

A

An ordered collection of values where each value is identified by an integer index.

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

item

A

One of the values in a sequence.

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

index

A

An integer value used to select an item in a sequence, such as a character in a string. In Python indices start from 0.

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

slice

A

A part of a string specified by a range of indices.

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

empty string

A

A string with no characters and length 0, represented by two quotation marks.

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

immutable

A

The property of a sequence whose items cannot be changed.

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

traverse

A

To iterate through the items in a sequence, performing a similar operation on each.

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

search

A

A pattern of traversal that stops when it finds what it is looking for.

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

counter

A

A variable used to count something, usually initialized to zero and then incremented.

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

invocation

A

A statement that calls a method.

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

optional argument

A

A function or method argument that is not required

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