After parsing a csv file, i got a list like this:
['name', 'AGATC', 'AATG', 'TATC\n']
Is there any way that I can delete the newline (\n
) character from the last element of the list so that the length of the element won't include the newline? I have tried the built-in replace()
function but it did not work.