Select true statements. (select three) a. Special methods have names that begin and end with double underscores.

Questions & AnswersCategory: PythonSelect true statements. (select three) a. Special methods have names that begin and end with double underscores.
Lokesh Kumar Staff asked 2 years ago

Select true statements. (select three)

a. Special methods have names that begin and end with double underscores.

b. A special method is a method that is defined outside the body of a class.

c. A special method is a method that is implicitly called by Python to perform a specific operation. For example, such as addition, subtraction, extended assignment, etc.

d. Special methods are commonly called magic methods.

1 Answers
Lokesh Kumar Staff answered 2 years ago

a. Special methods have names that begin and end with double underscores.
c. A special method is a method that is implicitly called by Python to perform a specific operation. For example, such as addition, subtraction, extended assignment, etc.
d. Special methods are commonly called magic methods.