square footage | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

square footage

Question asks to input a number in the array and then sort it in ascending order, this is my code: import numpy as np data = np.array([1000, 2500, 1400, 1800, 900, 4200, 2200, 1900, 3500]) x = input() data = np.append(data, x) data = np.sort(data) print(data) But my output is putting the 900 at the end for some reason?

28th Jul 2021, 6:53 PM
Candace Taylor
Candace Taylor - avatar
1 Answer
- 1
Thanks!
28th Jul 2021, 7:08 PM
Candace Taylor
Candace Taylor - avatar