How do I check which version of python is runnning my script?

There are two environment in which you can check your python version.

Check the Python version on the command line:

In short,

Check the Python version in script at run time: