My intention is to have a whole lot of text and translate it into all lower case first. (Which it does) Then, remove the punctuation marks in the text.(Which it does not) Finally, print out the frequency of the word used. (It prints out test. and test as two different things.)
from collections import Counter
text = """
Test. test test. Test Test test.
""".lower().strip(".")
words = text.split()
counts = Counter(words)
print(counts)
Any help would be appreciated.