Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

can you please fix the error. Thank you
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Nested Relations And Complex Objects In Databases Lncs 361

Authors: Serge Abiteboul ,Patrick C. Fischer ,Hans-Jorg Schek

1st Edition

3540511717, 978-3540511717

More Books

Students also viewed these Databases questions

Question

What is the preferred personality?

Answered: 1 week ago

Question

What is the relationship between humans?

Answered: 1 week ago