How to list vertices coordinates from selected edge I need to list the extremities of an edge. I've got a selected edge in edit mode and I need to list the coordinates. This will be very useful!

This because I'm looking for the rotation of an edge on the XY plane. I've already figured out how to get the angle but I need the two vertices coordinates to start the math.
Hope there is a built-in method!

Thank you for your attention.
This will display the  coordinates of the selected vertices of the selected object  ( you have the local and the world coordinates as @poor have noted )

import bpy

obj = bpy.context.object
bpy.ops.object.mode_set(mode = 'OBJECT')
#all selected vertices indecies
verts_ind = [i.index for i in obj.data.vertices if i.select]
bpy.ops.object.mode_set(mode = 'EDIT')

for i in verts_ind :
    local_co = obj.data.vertices[i].co
    world_co = obj.matrix_world * local_co
    print(world_co)