Chapter 16 Flashcards

1
Q

encode

A

To represent one set of values using another set of values by constructing a mapping between them.

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

class attribute

A

A variable that is defined inside a class definition but outside any method. Class attributes are accessible from any method in the class and are shared by all instances of the class.

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

accumulator

A

A variable used in a loop to accumulate a series of values, such as by concatenating them onto a string or adding them to a running sum.

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