With Python I know that the \"\\n\" breaks to the next line in a string, but what I am trying to do is replace every \",\" in a string with a \'\\n\'. Is that possible? I am kin
>>> str = 'Hello, world' >>> str = str.replace(',','\n') >>> print str Hello world >>> str_list=str.split('\n') >>> print str_list ['Hello', ' world']
For futher operations you may check: http://docs.python.org/library/stdtypes.html