how to know if i have python installed code example
Example 1: how to find where python is located
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
Example 2: how to check python version
python --version #in command line
python #or by enterng interactiv mode