I have the below list
list = ['\n A\n ', '\n B\n ', '\n C\n ', '\n D\n ']
Seems like list is center aligned and this list is the output of bs4 code I run. How can I remove all the newline characters from this list that the final output looks like
list = ['A','B','C','D']