code: def floatdict(value):
      
      value = ast.literal_eval(value)
      if isinstance(value, (int, float, list)):
          return {'default': value}
      dic = {'default': value[next(iter(value))]}
      dic.update(value)
      return dic
docs: :param value:
          input string corresponding to a literal Python number or dictionary
      :returns:
          a Python dictionary key -> number
  
      >>> floatdict("200")
      {'default': 200}
  
      >>> text = "{'active shallow crust': 250., 'default': 200}"
      >>> sorted(floatdict(text).items())
      [('active shallow crust', 250.0), ('default', 200)]