def extract_from_dict(data, path):
 value = data
 try:
  for key in path:
   value = value[key]
  return value
 except (KeyError, IndexError, TypeError):
  return ''

def extract_from_dict ( data , path ) : value = data try : for key in path : value = value [ key ] return value except ( KeyError , IndexError , TypeError ) : return ''
navigate data .