<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def height(self):
 """Terminal height. """

        if self.interactive:
            if self._height is None:
                self._height = self.term.height
            return self._height