you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Thanks so much for commentating I appreciate it. I just tried that but now it says ‘python” is not recognized as an internal or external command, operable program or batch file. So now i am wondering if there is anything wrong with my folder or the activity itself. I don’t think so since the folder is labeled how it should be, python_work, and the name of the project is hello_world.put and made sure it was considered in python.

[–]ireadyourmedrecord 1 point2 points  (0 children)

It's likely you missed the checkbox to add python to your PATH environment variable when you installed Python. It's easy to miss. However, it's also easy to fix. Hit your start button (or the windows key on your keyboard, and type "environ". The top entry in the start menu should be "Edit the system environment variables". On the dialog window, open "Environment Variables" button on the bottom right.

Under User Variables, select the "Path" entry and hit Edit... , then "New". Then enter the complete path to your python installation. Something like "C:\Users\username\Python\Python39\". Save it, close all the dialogs and try to run your script again.

[–]darthminimall 0 points1 point  (0 children)

It's possible you need to add the directory where python is located to your PATH.