code: def value(self):
          
          try:
              value = self.lastValue
          except IndexError:
              value = "NaN"
          except ValueError:
              value = "NaN"
          return value
docs: Take last known value as the value