Python class output

Hello everyone,

I am relatively new to python and also the use of classes. I am trying to put the values from a class in an empty list. For some reason im getting “<main.DataSet instance at 0x000000000000AEE3>” as the output instead of in this case a list of 2’s. Can someone explain to me what this means? (6.0 KB)

You are outputting a class instance (i.e. that has a, b, c, d properties with the value 2). It might cause less confusion if you inherent from the base .NET object class:

Edit: Here’s a quick update that might help your learning: (5.5 KB)

Thanks for that second part, ill try and play around a bit with this to understand it.

Kind regards,

1 Like