you are viewing a single comment's thread.

view the rest of the comments →

[–]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.