Write a python function to convert a user provided list of dictionaries into a list of values corresponding to the user specified key


Topic: Write a python function to convert a user provided list of dictionaries into a list of values corresponding to the user specified key

Solution

def pluck(lst, key):
  return [x.get(key) for x in lst]



List all Python Programs