Question: use python Once we know if an input is a question, we are going to get rid of all punctuation. To do so, write a
Once we know if an input is a question, we are going to get rid of all punctuation. To do so, write a function called remove_punctuation. This function should have the following inputs, outputs, and internal procedures: . Input(s): input_string - string Output(s): out_string - string Procedure(s): define a new variable out_string as an empty string loop through each character in input_string . if this character is not in string.punctuation o then concatenate the current character to out_string return out_string
Step by Step Solution
There are 3 Steps involved in it
To accomplish the task described you can use the string library in Python which has a predefined set ... View full answer
Get step-by-step solutions from verified subject matter experts
