+ 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?
1 ответ
- 1
Thanks!