Sorry, it is not working at all…
Look please in his video, he does absolutely the same as me(i do the same :)) )
when he types all good, when i, it’s always error
It’s already been mentioned but you have typed pythoninto the python interpreter in your first screenshot.
In the video they have typed python into a shell.
These are not the same thing.
You may have not used a shell before, in which case you should look into learning how to do so.
Git bash/git for windows is an easy way to get started, but once you are more confident you might want to look at using the Windows subsystem for Linux (WSL2).
None of this is python specific, this is about becoming computer literate to the level required to be a productive programmer.
The commands have to be entered in the right context, as the other posts have mentioned. You can look at the prompt for a hint about what context you’re currently in:
>>> means that you’re in the Python interpreter, so it’s expecting you to enter a Python statement.
$ means that you’re at the bash shell prompt, so it’s expecting you to enter a Linux command.
# would mean the same when you’re logged in as root (i.e. with admin privileges).
C:\> (or similar) would mean you’re at the Windows command prompt, so it’s expecting a DOS/Windows command.
In the screenshot from the video, you can see that he
starts off at the $ prompt and executes a Linux command to start Python,
then enters some Python code at the >>> prompt and exits with exit(),
then, back at the $ prompt, executes Linux commands again to launch Python with the file Desktop/intro.py.
That said, if you just want to run your program from IDLE, you can select “Run module” from the “Run” menu in your editor window (or press F5).