Text that you copy from the internet often contains junk symbols. Examples are double whitespace, the symbol "minus" instead of a dash, single quotes instead of double ones, or single punctuation marks (dot, comma, exclamation mark, or question mark).
You need to write a small program that points out these junk symbols. If any of the cases are found in the input string, print the corresponding message:
- "Double whitespace"
- "Minus symbol"
-(dash is—) - "Single quotes"
' - "Single mark"
.,?!
For the minus-dash problem, let's make a deal that the minus symbol means a negative number, and it's written without whitespace: -1, -0.5, -433. On the other hand, the dash symbol has whitespace on both sides: — .
For the single-mark problem, remember that punctuation marks are placed right next to another symbol:
single-mark problem,— correctsingle-mark problem ,— not correct
And let's think that a string doesn't contain words like it's, where a single quote is a part of the word.