python check python version in code code example
Example 1: python print version
import sys
print(sys.version)
Example 2: how to find python version
python --version
Example 3: how to check python version
python --version #in command line
python #or by enterng interactiv mode