What built-in function can you use to check if a given object has a specific attribute/method?

Questions & AnswersCategory: PythonWhat built-in function can you use to check if a given object has a specific attribute/method?
Geek Boy Staff asked 2 years ago

What built-in function can you use to check if a given object has a specific attribute/method?
a. hasattr()
b. attr()
c. setattr()
d. getattr()