If you want add Python to your PATH or you need to reference it in some other way, here’s how you can locate it.
sys module has the value of the executable (e.g. the
python.exe) stored, so you can run this code to get it:
import sys sys.executable