I am playing with Python and found a script online which contains a function. I wrote a simple analogous example below:
def func(thing):
test = thing[0,:]
print(test)
I do not know what datatype the variable "thing" is in this case. What kind of Python datatype/object can be called with square brackets like this?
If you run (using my example above) the variable "thing" as an np.array, dict or list, I get the error: "list indices must be integers or slices, not tuple"