Chapter 16 Flashcards
1
Q
encode
A
To represent one set of values using another set of values by constructing a mapping between them.
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.
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.