Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python argsort a list
user1307540
Programming language:
Python
2021-05-25 16:36:21
0
Q:
python argsort a list
Emma
Code:
Python
2021-07-14 03:22:21
a=list((1, 2, 3, -20)) sorted(range(len(a)), key=a.__getitem__) output: [3, 0, 1, 2]
0
Tags
python
list
sort
Related
python declare array
python how to make an array of ones
python argsort
*arg in python
python *args
how to create an array from a list in python
making lists in python
.argsort() python
python create array
create array in python
how to create an array in python
array in array python
how to extend an array python
declare array python
New to Communities?
Join the community