print python version in script code example Example: python print version import sys print(sys.version)