How can I check what version of the Python Interpreter is interpreting my script?
import sys sys.version.split(' ')[0]
sys.version gives you what you want, just pick the first number :)