I have an array "labels" with three thousand 0 and 1 values. If I multiply this with -1, it results in an empty array. I am not able to understand why it is resulting in 0?
Input
print(labels[0:10])
Output
['0', '1', '1', '0', '1', '0', '0', '1', '0', '0']
Now, if i do:
labels=labels*(-1)
print(labels)
It returns:
[]
I was expecting an array with 0 and -1 values. Please explain.