Consider the following list that breaks across lines:
a = [1, 2, 3,
4, 5, 6]
When I run this directly from the editor in Spyder, I get: SyntaxError: unmatched ']'
If I move the whole expression to the same line, there is no error.
If I run the same code (with the line break) from a Jupyter notebook, there is no error.
If I develop this code directly from the IPython console, it leads me with '...:' and there is no error.
Are there any good practices or settings for implementing line breaks when writing scripts in Spyder?
Thanks so much in advance.