remove the \n name spaces from a list in pytjon code example
Example: how to strip a list in python
list1 = ["a ", " b ", " c"]
[i.strip() for i in list1] # ['a', 'b', 'c']
list1 = ["a ", " b ", " c"]
[i.strip() for i in list1] # ['a', 'b', 'c']