Skip to content

Tag: python

How to replace Python list item by multiple items?

How to replace element ‘h1’ from input_list by multiple elements from input_keys[‘h1’]? I have tried: Answer A for loop will do the job. Note that I’m converting lists in the input_list into strings in order to check that they’re in the dictionary of input_keys.