a) obj.__str__()
b) str(obj)
c) print obj
d) all of the mentioned
If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!