>>> a = "hello\nhow are you\ni am fine">>> print ahellohow are youi am fine>>> b = a.splitlines()>>> print b['hello', 'how are you', ' i am fine']