split string to next line python code example Example: how to split a string with newline in python var = myString.splitlines()