python library version check code example
Example 1: check package version python
import packagename
print(packagename.__version__)
Example 2: python check version
python --version
import packagename
print(packagename.__version__)
python --version