Advertisement
dmesticg

Untitled

Apr 16th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def indirectArray(lst):
  2. tempDict = {}
  3. for x in range(len(lst)):
  4. tempDict[x] = lst[x]## creates a temp dictionary to easily sort and return keys (keys is the indexList)
  5. print (sorted(tempDict, key = tempDict.get))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement