title: Pass Python parameters to HTML
body: <p>I've the following HTML code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;form action="index.php" method="post"&gt;
      Enter Input:
          &lt;input type="text" class="textbox" name="usn" id="usn" required /&gt;
          &lt;input  class="buttongo" type="submit" value="Go" /&gt;
          &lt;input type="hidden" name="task" value="getResult"/&gt;
      &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to write a python script, which executes the above HTML, passing a <code>value</code> parameter to the first input statement to the above HTML. That is,</p>
  
  <pre><code>&lt;html&gt;
      &lt;form action="index.php" method="post"&gt;
      Enter Input:
          &lt;input type="text" class="textbox" name="usn" id="usn" value="FromPython" /&gt;
          &lt;input  class="buttongo" type="submit" value="Go" /&gt;
          &lt;input type="hidden" name="task" value="getResult"/&gt;
      &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Further, is there a way in which I can directly send the <code>value</code> to <code>index.php</code> and get the response?</p>
  
  <p>(P.S.: I want to loop the <code>value</code> from <code>0</code> to <code>100</code> and save the response generated in a file)</p>