✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!