What built-in function can you use to check if a given object has a specific attribute/method?Questions & Answers › Category: Python › What built-in function can you use to check if a given object has a specific attribute/method? 0 Vote Up Vote Down Geek Boy Staff asked 3 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()Share this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on WhatsApp (Opens in new window) WhatsApp Print (Opens in new window) Print Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Like this:Like Loading...1 Answers 0 Vote Up Vote Down Geek Boy Staff answered 3 years ago a. hasattr()Share this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on WhatsApp (Opens in new window) WhatsApp Print (Opens in new window) Print Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Like this:Like Loading...