I'm practicing my python and I want to remove all characters that are not words from a big document and just have all the words after. I want to keep it in the same way and not use anything fancy. This is what I currently have:
file = open('declarationOfRights.txt', 'r')
declines = file.readlines()
index=0
while index < len(declines):
declines[index] = declines[index].strip('\n').strip(',').strip('.').strip(';').strip('\'').lower()
index+=1
print(declines)