I have a dictionary as such:
dict = {1:a, 2:b, 3:c, 4:d}
I have a list of dict keys in a list already:
keys_order = [4, 2, 3, 1]
Given the info above, I want to create a list with 'values' of the dict
according to the order of keys_order
.
Expected result:
values_order = [d, b, c, a]
How should I do it?