+ 5
Why it is not working ?¿
3 odpowiedzi
+ 5
You need put a arr3 = before np.append and np.sort
+ 3
to expand on what Daniel said, the code would like something like this:
import numpy as np
arr3 = np.array([1, 4, 3, 6])
arr3=np.append(arr3, 2)
print (arr3)
arr3=np.sort(arr3)
print (arr3)
+ 2
What do you do?