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