Print Python version from Python code

Create an executable pv.py with the following contents:

#!/usr/bin/python3
import sys
print(sys.version)
and execute it - it will output the Python version