code: def pretty_print(x, numchars):
      
      s = maybe_truncate(x, numchars)
      return s + ' ' * max(numchars - len(s), 0)
docs: Given an object `x`, call `str(x)` and format the returned string so
      that it is numchars long, padding with trailing spaces or truncating with
      ellipses as necessary