version of python module code example
Example 1: check package version python
import packagename
print(packagename.__version__)
Example 2: python version
python ––version
import packagename
print(packagename.__version__)
python ––version