code: def element(self, inp=None):
          
          if inp is not None:
              s = str(inp)[:self.length]
              s += ' ' * (self.length - len(s))
              return s
          else:
              return ' ' * self.length
docs: Return an element from ``inp`` or from scratch.