lexicon = ['the\n', 'be\n', 'and\n', 'of\n', 'a\n', 'in\n', 'to\n', 'have\n', 'it\n']
lexicon.replace('\\n', "")
print(lexicon)

78913facaf74b7601ef6dcfc160fa18d0b5830b1
<mask token>

<mask token>
lexicon.replace('\\n', '')
print(lexicon)

lexicon = ['the\n', 'be\n', 'and\n', 'of\n', 'a\n', 'in\n', 'to\n',
    'have\n', 'it\n']
lexicon.replace('\\n', '')
print(lexicon)

lexicon = ['the\n', 'be\n', 'and\n', 'of\n', 'a\n', 'in\n', 'to\n', 'have\n', 'it\n']
lexicon.replace('\\n', "")
print(lexicon)
