challenging-america-word-ga.../test.py
2022-05-01 22:59:47 +02:00

5 lines
146 B
Python

file = open("train-300k.txt", "rt", encoding="utf-8")
data = file.read()
words = data.split()
print('Number of words in text file :', len(words))