Question: Write a Python program that accepts some text (could be a paragraph) as input and prepares it by a) making it all one case and
Write a Python program that accepts some text (could be a paragraph) as input and prepares it by a) making it all one case and b) removing all punctuation marks commonly found in text. (See your keyboard as a reminder of potential punctuation and make reasonable assumptions about which are commonly used in general text. See if you can write the code in a way that is not tedious or repetitive to write.) The program should also accept a word (or rather just a word fragment or string of characters) to be searched as a user input and then display a) how many times that fragment appears in the text that was input as well as b) the starting location of the first instance of the fragment, if it is in the text.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
