Question: Using Python; Ask user to type two texts: a sentence, where your program is going to search for a word, and a word (combination
Using Python;
" Ask user to type two texts: a sentence, where your program is going to search for a word, and a word (combination of characters to search).
Find, how many times second text is found in the first one and the number of the position where the first occurrence starts.
If the second text is not included in the first one, print a message. "
Answer to this: Continue with the previous task and print all other start positions of the second text in the first one.
Example:

Type your sentence here: Alice likes to swim, she likes to ski and she likes to skate. Type the combination of characters to search: like Your characters are found 3 times The first occurence starts at 6 Next occurence starts at 25 Next occurence starts at 46 >>> |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
