check which python i am using code example
Example 1: python version command notebook
import platform
print(platform.python_version())
Example 2: how to check python version
python --version
import platform
print(platform.python_version())
python --version