how to check if i have python installed windows 10 code example
Example: how to find where python is located
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'