How to get Blender's version number from Python?
bpy.app.version_string
Test using the python console:
&gt;&gt;&gt; bpy.app.version_string
'2.83.2'

Usage within a script file:
import bpy
print(bpy.app.version_string)

which will print the actual version to the system console window:
2.83.2


bpy.app.version
If you're looking to compare version numbers, it's easier to do this using bpy.app.version which will always be a tuple of 3 ints, (major, minor, subversion), eg: (2, 76, 0)
So you can compare the version number with regular comparison.
if (2, 76, 0) &gt; bpy.app.version:
    print(&quot;Your Blender version is too old!&quot;)