Which version of Python do I have installed?
python -V
http://docs.python.org/using/cmdline.html#generic-options
--version
may also work (introduced in version 2.5)
Python 2.5+:
python --version
Python 2.4-:
python -c 'import sys; print(sys.version)'
In a Python IDE, just copy and paste in the following code and run it (the version will come up in the output area):
import sysprint(sys.version)