#C7935. Remove Punctuation from String
Remove Punctuation from String
Remove Punctuation from String
Given a string s, your task is to remove all punctuation marks from the string and output the cleaned string.
Punctuation marks are symbols such as !
, ,
, .
, ?
, '
etc. For instance, if the input string is:
Then the output should be:
\texttt{\"Hello world Hows everything\"}Please note that you must preserve whitespace and numbers, but remove any punctuation character.
inputFormat
The input consists of a single line containing a string s. The string can contain letters, digits, spaces, and punctuation marks.
It is provided via stdin.
outputFormat
The output should be a single line containing the cleaned string with all punctuation marks removed.
It should be printed to stdout.
## sampleHello, world! How's everything?
Hello world Hows everything