LearnPy Hub
← NumPy problems
Medium

Positions in Sorted Order

Read integers. Print np.sort(a) and np.argsort(a, kind='stable') as lists.

Input

One line.

Output

Two lists.

Sample 1

Input
30 10 20
Output
[10, 20, 30]
[1, 2, 0]

Sample 2

Input
5
Output
[5]
[0]
solution.py
Output appears here
Positions in Sorted Order · Python practice problem · LearnPy Hub