windows command check python 2.7.1 code example Example: python version command import sys print(sys.version)