A simple but effective way to check if python is correctly installed is:
Click on WIN key
write: CMD. A black terminal will open
write: python
only the word ‘python’ … don’t include the ‘’
if python is correctly installed, you will see the version.
if python is not found, do 2 things.
------ 5.1 uninstall python and install it with right click and execute as Admin.
------ 5.2 when installing again, double check that you ADD THE PATH. It’s on the first page of the installation process.
in VS code sometimes this happens to me too. I’ve realized that the file path is not correct, so I have to navigate to the correct path… which is weird, but it has happened.
There is another way to execute python code and it’s thru the command itself. In Windows, using the Windows explorer, navigate to where the python file is and then at the top (where you see the path) make a click and the whole path will become blue. There you write: ‘CMD’ without the ‘’. The command terminal will show up in the correct path. So, you just write: python file.py and the file will open using python. To avoid writing ‘python file.py’ everytime you need to run your code, just press the up arrow, and the historic of commands will be there. I hope this makes sense.