print python version being used python code example Example: python version command notebook import platform print(platform.python_version())