I'm reading a file, stopwords.txt , and in this file each stopword is in a line,
a
o
para
Each stopword I am saving in a list as follows:
with open(sys.argv[1],"r") as file_entrada:
lista_nome_base_docs = [line.rstrip() for line in file_entrada]
with open(sys.argv[2],"r") as file_stopwords:
lista_stopwords = [line.strip() for line in file_stopwords]
After reading this, I would like to display the list on the screen and go out like this
Between the stopwords , there is a blank space, for example: ['a','','para']
How do I not see these white spaces in the list?