title: Python - While loop store min value
body: <p>I would like to store the minimum value during a while loop because of sometimes i cant converge and my value continues to fluctuate...
  But i dont know how to store this minimum value met during the loop...</p>
  
  <pre><code>while np.abs(dX) &gt; 2.:
    x0_corr = x0 + dX
    y0_corr = y0 
  ...
  dX = ..
  </code></pre>