How to get current Blender version number through the Python API

To get current Blender version number through the Python API we need to execute the following command:

or

The first is preferable because it returns a tuple that is easy to compare:

 

Nikita

Author: Nikita

Blender add-ons developer and articles writer.