title: get a specific input type in python
body: <p>I need to know how to process this file using <code>Python 3</code>:</p>
  
  <pre><code>120 11
  10213 312
  10 3
  </code></pre>
  
  <p>I would do this using <code>C</code> with this code:</p>
  
  <pre><code>scanf("%d", &amp;t);
  while (t--) {
     scanf("%d %d", &amp;a, &amp;b);    
     gcd(a, b);
  }
  </code></pre>