Punctuations generates error

Book Q&ACategory: Chapter 11Punctuations generates error
Wouter Magre asked 5 years ago

In exercire 11-4 Part 3 Step 7 I get an error

Expression.Error: The value isn’t a single-character string.

Details:

Value=", "

Analise of the puctuation list I found out that the problems occurs on the bold section below:

= {" ", "~", ",", ".", "?", "!", "(", ")", "[", "]", "{", "}", "@", "#", "$", "%",

"^", "&", "", "-", "+", "=", ":", ";", "|", "<", ">", "/", """, """, "\", """",

"#(tab)", "#(cr)", "#(lf)"}

The error does not occus when I replace the punctustion list with

= {" ", "~", ",", ".", "?", "!", "(", ")", "[", "]", "{", "}", "@", "#", "$", "%","^", "&", "", "-", "+", "=", ":", ";", "|", "<", ">", "/", "’", "\", """","#(tab)", "#(cr)", "#(lf)"}

""", """ replaced with "’" (Single quot)

1 Answers

Best Answer

Gil Raviv Staff answered 5 years ago

Thank you Wouter for reporting this issue.

The original code contains curly double quotes that were printed by mistake as straight double quotes. You can find the correct punctuation list in the solution files (e.g. C11E04 – Solution.pbix)

The correct code should be with curly double quotes:

= {" ", "~", ",", ".", "?", "!", "(", ")", "[", "]", "{", "}", "@", "#", "$", "%",

"^", "&", "*", "-", "+", "=", ":", ";", "|", "<", ">", "/", "“", "”", "\", """",

"#(tab)", "#(cr)", "#(lf)"}

(See section: "“", "”" )