✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Write a Python program that reads a text file. The program should:
Convert all words to lowercase.
Store the words in a list.
Use a dictionary to count how many times each word appears.
Find and print the word(s) with the minimum frequency (i.e., words that occur least often).
Example of the text file words:
Apple banana apple ORANGE Banana orange.
ORANGE apple BANANA apple.
Example of code execution:
Enter the filename: text1.txt
Words with the minimum frequency:
orange.
apple.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!