Remova a nova linha à direita dos elementos de uma lista de cadeias

Tenho que pegar uma grande lista de palavras no formato:

['this\n', 'is\n', 'a\n', 'list\n', 'of\n', 'words\n']

e, em seguida, usando a função strip, transforme-a em:

['this', 'is', 'a', 'list', 'of', 'words']

Pensei que o que havia escrito funcionaria, mas continuo recebendo um erro dizendo:

"objeto 'list' não tem atributo 'strip'"

Aqui está o código que eu tentei:

strip_list = []
for lengths in range(1,20):
    strip_list.append(0) #longest word in the text file is 20 characters long
for a in lines:
    strip_list.append(lines[a].strip())

questionAnswers(6)

yourAnswerToTheQuestion