Page 1 of 1

If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __

Posted: Wed Jul 13, 2022 7:44 pm
by answerhappygod
a) obj.__str__()
b) str(obj)
c) print obj
d) all of the mentioned