79185781

Date: 2024-11-13 16:20:31
Score: 1
Natty:
Report link

0

You should not type in python in the terminal.

Because the Python Extension only sends some commands to the terminal and then executes them.

If you type python in the terminal you will enter into the interactive mode, and the commands which intended to be executed in the terminal will be executed in the python interactive mode, and lead to SyntaxError.

So, you can get out of the python interactive mode through Ctrl+Z shortcut or kill the terminal and then execute the commands in a new terminal.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Srishanth sri