I have a n dimensional array in python = X. 

It has float values. I want to replace all values in X> .35 with 0 and all values <= .35 with 1.

If i try ,

```
X[X>.35]=0 ;
X[X<=.35]=1

```

or vice versa , all my array is changing to 0 or 1 (clearly as one statment is execute after other )