title: How do I get integers from a tuple in Python?
body: <p>I have a tuple with two numbers in it, I need to get both numbers. The first number is the x-coordinate, while the second is the y-coordinate. My pseudo code is my idea about how to go about it, however I'm not quite sure how to make it work. </p>
  
  <p>pseudo code:</p>
  
  <pre><code>tuple = (46, 153)
  string = str(tuple)
  ss = string.search()
  int1 = first_int(ss) 
  int2 = first_int(ss) 
  print int1
  print int2
  </code></pre>
  
  <p><strong>int1</strong> would return 46, while <strong>int2</strong> would return 153. </p>