Vs Code Ejecutar Python en la sintaxis no válida de terminal

# type in terminal/console:
exit() 

'''
/usr/local/opt/python/bin/python3.7 /Users/andree/Desktop/test.py
  File "<stdin>", line 1
    /usr/local/opt/python/bin/python3.7 /Users/andree/Desktop/test.py
    ^
SyntaxError: invalid syntax
'''
Edi Sugiarto