blender, rotate a triangular mesh via python scripting

Job ID: 33070754

Budget: €8 – €9 EUR

I have an object with an traingular face, I want rotate it to align it to plane XY.
The rotation must take place along the lowest vertex.(bmesh.ops.rotate(bm, cent=vertex[0].co...) in order to understand each other)
At the end of the rotation, the vertices must have the same z coordinates
i want the python code to do this
Related categories: Python Software Architecture Blender