Basically I want to access the coordinates of 2 mouse clicks, and then I even have to perform operations using those coordinates .
I have found this code but this is running infinitely and not terminating after 2 times as how I wanted
import turtle
def get_mouse_click_coor(x, y):
print(x, y)
turtle.onscreenclick(get_mouse_click_coor)
turtle.mainloop()