title: How to return an int value from a function python
body: <p>I am really new to Python and found this snippet online that I've modified, right now I have it printing x * y but I want to be able to return it as a int value so I can use it again later in the script.</p>
  
  <p>I'm using Python 2.7.6.</p>
  
  <pre><code>def show_xy(event):
      xm, ym = event.x, event.y
      x3 = xm * ym
      print x3
  root = tk.Tk()
  frame = tk.Frame(root, bg = 'yellow', 
                  width = 300, height = 200)
  frame.bind("&lt;Motion&gt;", showxy)
  frame.pack()
  
  root.mainloop()
  </code></pre>
  
  <p>Kind regards,
  Postie</p>