SYNTAX ERROR (please copy/paste to see)
x = {
"0":"G",
"1":"H"
}
Tested on line interpreter:
>>> x = {
... "0":"G"
File "<stdin>", line 2
"0":"G"
^
SyntaxError: invalid syntax
But this other (seems the same!) is fine, (please copy/paste to see)
x = {
"0":"G",
"1":"H"
}
The real-life dictionary is longer and complex, but it is from a PDF and I copy/paste to editor (or direct to terminal same result). Perhaps (after comment that confirm) it is a ASCII convertion problem and I need to clean... So que question is "how to sanitize copy/paste source-code that seeems perfect?"
Tested with both:
python --version
= Python 2.7.17python3 --version
= Python 3.6.9