Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def indirectArray(lst):
- tempDict = {}
- for x in range(len(lst)):
- tempDict[x] = lst[x]## creates a temp dictionary to easily sort and return keys (keys is the indexList)
- print (sorted(tempDict, key = tempDict.get))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement