MC What happens when the __getattr__ method cannot locate an attribute name?

a) The __setattr__ method is called.
b) An exception is raised.
c) Python assigns a new attribute.
d) None of the above.

b) An exception is raised.

Computer Science & Information Technology

You might also like to view...

A(n) ________ changes the appearance of a cell based on a criteria

Fill in the blank(s) with correct word

Computer Science & Information Technology

The format specifier ________ is used to output values of type float or double.

a. %f b. %d c. %fd d. %r

Computer Science & Information Technology