Question: plz use python Write a program that prompts the user to enter some text. You can assume that this text will consist of one or

 plz use python Write a program that prompts the user to

plz use python

Write a program that prompts the user to enter some text. You can assume that this text will consist of one or more words, where every word consists only of alphabetical characters and each word is separated by a single space character. The program then prompts the user to enter a target word. The program counts the number of times the target word appears in the text, ignoring case, finally printing out this number. Note: - The output of the program must be in the format shown in the examples below, including the format of the prompt, and all spaces and punctuation. - The output of "time" or "times" will depend on the number of occurrences of the target word. For all count values except 1 , the word "times" should be used. - Useful methods: lower (), and split()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!