just do like this:


a="text1 \n text2 \n text3 \n text4"
g=a.split('\n')
g
['text1 ', ' text2 ', ' text3 ', ' text4']
d=tuple(g)
d
('text1 ', ' text2 ', ' text3 ', ' text4')


by

Shakil
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to