check version of python spyder code example
Example 1: python version command notebook
import platform
print(platform.python_version())
Example 2: how to check python version
python --version #in command line
python #or by enterng interactiv mode