Question: How to remove two elements from a string in python where the elements appears as [ ' a tb tc td '

How to remove two elements from a string in python where the elements appears as ['a \tb\tc\td
'.....] and want to both the remove the t's and the n's from the string. I am using the code: File_content=[] then I type: for i in File_read: in the next line then indent and type File_content.append (i.split('\t')) in the next line but it only removes the ts. If I replace the 't' with an 'n' the t's reappear and the n's go away. I need them both to go away.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!