sys.executable returns a string with the absolute path of the executable binary for the Python interpreter (source)
import sys print(sys.executable)
sys.executable returns a string with the absolute path of the executable binary for the Python interpreter (source)
import sys print(sys.executable)