python3 py version command code example Example: python version command import sys print(sys.version)