pytho get info of python version in code code example Example: get python version in code import platform print(platform.python_version())