python split string seperated by \r\n into list code example Example: how to split a string with newline in python var = myString.splitlines()