Notifications
Clear all

Is it possible to safely check if a class/object has a certain attribute?

1 Posts
1 Users
0 Likes
112 Views
 Tuan
(@shippertuan)
Posts: 713
Noble Member
Topic starter
 

Is it possible to safely check if a class/object has a certain attribute?

  • A . yes, by using the hasattr attribute
    B. yes, by using the hasattr ( ) method
    C. yes, by using the hassattr ( ) function
    D. no, it is not possible

Show Answer Hide Answer

 
Posted : 12/11/2022 5:58 am
Topic Tags

Latest Python Institute PCAP-31-03 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: