πŸ“Š Python
Q. The hasattr(obj,name) is used to
  • (A) check if any specific attribute exists
  • (B) set an attribute
  • (C) access the object’s attribute
  • (D) delete an attribute
πŸ’¬ Discuss
βœ… Correct Answer: (A) check if any specific attribute exists

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
210
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Parvesh Kanani
Publisher
πŸ“ˆ
91%
Success Rate