When I write in the terminal using python in VScode i can never write in the terminal like the tutorials are doing. how do I fix that?
Question:
Answers:
You are typing in a z shell, but you are trying to execute python code. To enter python’s interactive mode, you can simply type /usr/bin/local/python3
(or python3
directly might work if things are setup correctly on your computer).
Once you do that, you should see something like
Python 3.9.2 (default, Jul 16 2021, 11:47:35)
[Clang 12.0.5 (clang-1205.0.22.11)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
in which you can type your lines of python code
You are typing in a z shell, but you are trying to execute python code. To enter python’s interactive mode, you can simply type /usr/bin/local/python3
(or python3
directly might work if things are setup correctly on your computer).
Once you do that, you should see something like
Python 3.9.2 (default, Jul 16 2021, 11:47:35)
[Clang 12.0.5 (clang-1205.0.22.11)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
in which you can type your lines of python code