code: def reindent(s, numspaces):
      
      leading_space = numspaces * ' '
      lines = [leading_space + line.strip()for line in s.splitlines()]
      return '\n'.join(lines)
docs: reinidents a string (s) by the given number of spaces (numspaces)