Strange error about invalid syntax
Getting “invalid syntax” on a plain return statement is pretty much impossible. If you use it outside of a function, you get ‘return’ outside function, if you have the wrong indentation you get IndentationError, etc. The only way I can get a SyntaxError: invalid syntax on a return statement, is if in fact it doesn’t say return at all, but if … Read more