In Python, how can I remove an object from array of objects? Like this:
x = object() y = object() array = [x,y] # Remove x
I\'ve tried
If you know the array location you can can pass it into itself. If you are removing multiple items I suggest you remove them in reverse order.
#Setup array array = [55,126,555,2,36] #Remove 55 which is in position 0 array.remove(array[0])