in python how to remove this \n from string or list

Posted by pritesh modi on Stack Overflow See other posts from Stack Overflow or by pritesh modi
Published on 2010-05-25T09:43:29Z Indexed on 2010/05/25 9:51 UTC
Read the original article Hit count: 196

Filed under:

this is my main string

"action","employee_id","name"
"absent","pritesh",2010/09/15 00:00:00

so after name coolumn its goes to new line but here i append to list a new line character is added and make it like this way

data_list*** ['"action","employee_id","name"\n"absent","pritesh",2010/09/15 00:00:00\n']

here its append the new line character with absent but actually its a new line strarting but its appended i want to make it like

data_list*** ['"action","employee_id","name","absent","pritesh",2010/09/15 00:00:00']

© Stack Overflow or respective owner

Related posts about python