Run Selection/Line in Python Terminal gives syntax errors when running selection with function def or other blocks · Issue #259 · microsoft/vscode- python · GitHub
Invalid Syntax Python: What is Invalid Python SyntaxError?
How to Handle Errors in Python? - Studytonight
SyntaxError: invalid syntax in if statement (Python) – Its Linux FOSS
Invalid syntax error when using python hydrogen atom · Issue #1353 · nteract/hydrogen · GitHub