python code to check python version match code example Example: python version command import sys print(sys.version)