29th Aug 2021, 2:21 AM
Aditya Dhiman
Aditya Dhiman - avatar
3 odpowiedzi
+ 5
You need put a arr3 = before np.append and np.sort
29th Aug 2021, 2:31 AM
Daniel
Daniel - avatar
+ 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)
29th Aug 2021, 2:50 AM
you are smart. you are brave.
you are smart. you are brave. - avatar
+ 2
What do you do?
29th Aug 2021, 2:23 AM
CGO!
CGO! - avatar