Sep-26-2020, 12:34 AM
Often the python installation will associate the ".py" extension with your python interpreter. So you just need to double-click on it in explorer. If you output text though, beware the window will disappear after the program exits. So if you want to see data you've print()ed at the end, you might end the program with something like:
You could also just type
input("Press enter to end the program")so the window doesn't go away until you're done looking at the data. Wouldn't be a problem with tkinter where you normally exit explicitly.
You could also just type
python <myprogram.py>
from a command window.