cli check how many python versions code example
Example 1: how to check python version
python --version
Example 2: python version command notebook
import platform
print(platform.python_version())
python --version
import platform
print(platform.python_version())