I have an object that has int and string, i.e.:
obj1 = Object("cat",(1,2),(2,2))
I want to create an array
that could store obj1
. I have searched online and realized that Python array could only contain 1 data type.
However, is there any other ways to create an array that could store an object with different data type?
Thank you