Python Institute PCAP-31-03 Question Answer
Is it possible to safely check if a class object has a certain attribute0
yes, by using the hasattr attribute
yes. by using the hasattr () method
yes, by using the hasattr () function
no, it is not possible
TESTED 15 Feb 2026
Copyright © 2014-2026 ACE4Sure. All Rights Reserved