from collections import Counter
f = open("GP.txt", "r", encoding="utf8").read()
file = f
print("Количество символов с пробелами: " + str(len(file)))
file = file.split()
file = ''.join(file)
print("Количество символов без пробелов: " + str(len(file)))
num_words = 0
words = []
with open("GP.txt", 'r', encoding='utf8') as f:
    for line in f:
        words += line.split()
        word = line.split()
        num_words+= len(word)
print("Количество слов: " + str(num_words))
amountRW = num_words - len(Counter(words))
print("Количество слов без повторений: " + str(amountRW))
bc97a49a81a14dccf5560cf8684496a4dbf8baf9
<mask token>

<mask token>
print('Количество символов с пробелами: ' + str(len(file)))
<mask token>
print('Количество символов без пробелов: ' + str(len(file)))
<mask token>
with open('GP.txt', 'r', encoding='utf8') as f:
    for line in f:
        words += line.split()
        word = line.split()
        num_words += len(word)
print('Количество слов: ' + str(num_words))
<mask token>
print('Количество слов без повторений: ' + str(amountRW))

<mask token>
f = open('GP.txt', 'r', encoding='utf8').read()
file = f
print('Количество символов с пробелами: ' + str(len(file)))
file = file.split()
file = ''.join(file)
print('Количество символов без пробелов: ' + str(len(file)))
num_words = 0
words = []
with open('GP.txt', 'r', encoding='utf8') as f:
    for line in f:
        words += line.split()
        word = line.split()
        num_words += len(word)
print('Количество слов: ' + str(num_words))
amountRW = num_words - len(Counter(words))
print('Количество слов без повторений: ' + str(amountRW))

from collections import Counter
f = open('GP.txt', 'r', encoding='utf8').read()
file = f
print('Количество символов с пробелами: ' + str(len(file)))
file = file.split()
file = ''.join(file)
print('Количество символов без пробелов: ' + str(len(file)))
num_words = 0
words = []
with open('GP.txt', 'r', encoding='utf8') as f:
    for line in f:
        words += line.split()
        word = line.split()
        num_words += len(word)
print('Количество слов: ' + str(num_words))
amountRW = num_words - len(Counter(words))
print('Количество слов без повторений: ' + str(amountRW))

from collections import Counter
f = open("GP.txt", "r", encoding="utf8").read()
file = f
print("Количество символов с пробелами: " + str(len(file)))
file = file.split()
file = ''.join(file)
print("Количество символов без пробелов: " + str(len(file)))
num_words = 0
words = []
with open("GP.txt", 'r', encoding='utf8') as f:
    for line in f:
        words += line.split()
        word = line.split()
        num_words+= len(word)
print("Количество слов: " + str(num_words))
amountRW = num_words - len(Counter(words))
print("Количество слов без повторений: " + str(amountRW))