(POC) Python Online Certification Practice Test
POC Object-Oriented Programming in Python 2
⏱️ About 6 min to complete · 7 questions
What is the purpose of the `__str__` method in a Python class?
Select your answer
A
To compare two objects for equality
B
To return a human-readable string representation of an object
C
To initialize object attributes
D
To delete an object from memory
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 POC Flashcards — Study This Quiz as Flip Cards →
📚 Want to go deeper? Read the Full POC Study Guide →