About this question
Beginning to learn ropes in Python. When I try to print an object of class Foobar using the print()function, I get an output something like this:
<__main__.Foobar instance at 0x7ff2a18c>
For instance, when I call print() on a class object, I would like to print its data members in a certain format that is easy to grasp.
How to achieve this easily in Python? Appreciate some help.