title: Taking multiple lines of strings as command line input in Python
body: <p>In coding contests, I am supplied an initialization file from which to read initial parameters. However, sometimes the parameters are spread over separate lines as follows:</p>
  
  <pre><code>x
  a 
  b
  </code></pre>
  
  <p>(All of them integers)</p>
  
  <p>Now when I read line1, I believe I would store <code>x</code> like this:</p>
  
  <pre><code>x = int(sys.argv[1])
  </code></pre>
  
  <p>How do I take care of other lines? Will <code>sys.argv[2]</code> give me the next parameter on line 2?</p>
  
  <p>More precisely, will using:</p>
  
  <pre><code>par_list = sys.argv[1:].split(" ") 
  </code></pre>
  
  <p>give me a list of parameters on all the lines?</p>