python string with newline to list code example Example: python string to list new line x.splitlines()