I have some code which seems to print [<__main__.TCar object at 0x0245C1B0>] but I want it to print the actual contents of the list.
[<__main__.TCar object at 0x0245C1B0>]
class TCa
print the attribute one by one rather than printing garange once: print(self.attribute).Note that the attribute in the code is an instance of the object