Question: can you please fix the error. Thank you Write a program that reads a list of words. Then, the program outputs those words and their


Write a program that reads a list of words. Then, the program outputs those words and their frequencies (case insensitive) Ex. If the input is: hey Hi Mark hi mark the output is: hoy 1 Hi. 2 Mark 2 hi 2 mark 2 Hint: Use lower() to set each word to lowercase before comparing 1 stofwords = input ( ) words = Istofwords.split(" ") for wrd in words: print(wrd, words. count (wrd))] When done developing your program, press the Submit for grading button b submit your program for auto-grading. 2. Compare output Output differs. See highlights below. Input a cat and a dog may fight but a Cat and a Cat may fight more a 4 cat 1 and 2 a 4 dog 1 may 2 fight 2 but 1 a 4 Cat 2 Your output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
