[Solved] : Question 157391

3. Write a python function called removePunctuation that takes as an argument a string. representing a sentence and returns a copy of the string with all punctuation removed.


Argument: “Hello?! Let’s try to solve this exercise, it will be easy :)!”

The function will return: Hello Lets try to solve this exercise it will be easy (Hint: You may use string built-in functions: isalnum) to check for every character if the character is alphanumeric (letter or digit) and isspace) to check if it is a space. Remove any character that is neither an alphanumeric, nor a space)

Expert Answer

Answer to : Question 157391

Leave a Comment


We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?