Question: Develop a Python program that accepts a statement and a word from the user. The script determines the index positions ) of the word in

Develop a Python program that accepts a statement and a word from the user. The script determines the index positions) of the word in the statement and prints the statement, word and the index position(s). After the printing, the program asks for the next statement and word and continues until next statement entered is empty.Example output:Statement: This is a test statement that is to be used and it is a good one.Word: isFound in positions: 2,7,13.Hints: string split() method that Splits a string into a list where each word is a list item

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!