title: How to return mouse-click x,y values to variables in turtle?
body: <p>How do I return the x, y values of a click to variables x, y? (With the turtle library)</p>
  <p>I've seen this code:</p>
  <pre><code>import turtle
  
  def get_mouse_click_coor(x, y):
      turtle.onscreenclick(None)
      print(x, y)
  
  turtle.onscreenclick(get_mouse_click_coor)
  
  turtle.mainloop()
  </code></pre>
  <p>Problem is that it only prints the values of x and y. Is there any way I can get the (x, y)-values of a click returned, and then assigned to variables?</p>