I have a list of elements and I'd like to insert dictionary values into that list after the key element:
listicle = ['a', 'b', 'c', 'd']
some_new_elements = {'b':'x', 'd':'y'}
giving the following:
['a', 'b', 'x', 'c', 'd', 'y']
What is the Pythonic way to do this?