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