Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reorder list python

a_list = ["a", "b", "c"]
order = [1, 0, 2]
a_list = [a_list[i] for i in order]
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #reorder #list #python
ADD COMMENT
Topic
Name
3+3 =