I have already installed Python and when I tried to update it, nothing worked for me, perhaps because of the old version I have a problem with executing the script code, the problem is that after launching the script the console window simply closes, can you advise me how to solve this problem?

I downloaded the latest version of python from the site but the command line shows the old one
https://live.staticflickr.com/65535/...6af48db5_o.png

- - - Updated - - -

I fixed the error, but the window still closes

- - - Updated - - -

I reinstalled python, the window does not close now but nothing happens after running the script