how to check which python version am I runnin code example
Example 1: how to check python version
python --version
Example 2: get python version in code
import platform
print(platform.python_version())
Example 3: how to check python version
python --version #in command line
python #or by enterng interactiv mode