show version package python code example
Example 1: python print version
import sys
print(sys.version)
Example 2: check package version python
import packagename
print(packagename.__version__)
Example 3: check python version
# To check Python version
python -V
----or----
python --version