python __version__

# in the terminal type on 
python -V    Or    python --version

#in the console

import sys
print(sys.version)

Here is what the above code is Doing:
1. import sys is loading the sys module into your program’s namespace.
2. print(sys.version) is printing the version string stored in the sys module.