Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions