title: Feed python function with a variable number of arguments
body: <p>I have a script that reads a variable number of fields from an input file and pass them to a function as arguments. For example:</p>
  
  <blockquote>
    <p>file 1 with fields: A,B and C   => <code>function(A,B,C)</code></p>
    
    <p>file N with fields: A,B,C and D => <code>function(A,B,C,D)</code></p>
  </blockquote>
  
  <p>My question is: How to feed the function with the right number of fields accordingly to the input file?.</p>
  
  <p>PD: Of course the function accepts any number of arguments</p>