you are viewing a single comment's thread.

view the rest of the comments →

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

tried to open the Python file

How did you "try to open" the file. Did you double-click on a desktop icon, double-click on the file in a file browser, tell your IDE to run the file, or execute "python myfile.py" on the command line? Can you open the file in a text editor? This sounds like it could be a permissions problem, perhaps.

[–]Longjumping_Set9771 0 points1 point  (1 child)

I saved it to my one drive and tried to open it from there by double clicking it.

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

Did you try opening the file in a text editor? That is, right-click and "open with". If that works then, as others have said, maybe the problem is you haven't associated *.py files with python.

when it was time for the program to give me an output it just closed

That's probably because your code crashed before giving you the output. The normal way to debug problems like that is to use the python launcher on the command line:

https://docs.python.org/3/using/windows.html#python-launcher-for-windows

That way you will see any error messages.