code: def get(tree, name):
      
      if name in tree:
          value = tree[name]
      else:
          return float("nan")
      try:
          a = float(value)
      except ValueError:
          a = float("nan")
      return a
docs: Return a float value attribute NAME from TREE.