text = input("Введите текст: ")
text = text.split()
with open("text.txt", "w") as f:
for i in text:
f.write(i + "")
print("Количество слов: ", len(text))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
text = input("Введите текст: ")
text = text.split()
with open("text.txt", "w") as f:
for i in text:
f.write(i + "")
print("Количество слов: ", len(text))