code: def value(self, key=0, default=None):
          
          try:
              index = self.index(key)
          except (IndexError, KeyError):
              return default
          else:
              return self[index]
docs: Obtain a single value from the record by index or key. If no
          index or key is specified, the first value is returned. If the
          specified item does not exist, the default value is returned.
  
          :param key:
          :param default:
          :return: