Compressing text


Please help with the task is below:

Develop a program that analyses a sentence that contains several word without punctuation. When a word in that sentence is input the program identifies all of the positions where the word occurs in the sentence. The system should not be case sensitive

If possible can you do it using the .split method.
I.e. The program returns an error if punctuation is used


Hi Kingdecimo,

We're here to provide pointers as to how you should try to solve a problem, or to help you figure out what's wrong with code, but we're not here to write your code all for you.

Please copy/paste your code into a reply to this and use backticks:

to format it, so it shows up properly.