Reordene a lista de Python
a_list = ["a", "b", "c"]
order = [1, 0, 2]
a_list = [a_list[i] for i in order]
Gifted Gull
a_list = ["a", "b", "c"]
order = [1, 0, 2]
a_list = [a_list[i] for i in order]