title: Python - how do I display an updating value on one line and not scroll down the screen
body: <p>I have a python script which receives values in real-time. My script prints the values as they are received and currently, each update is printed to the screen and the output scrolls down e.g.</p>
  
  <pre><code>Update 1
  Update 2
  Update 3
  ...
  </code></pre>
  
  <p>Is it possible to have each new value overwrite the previous value on the output screen so that the values don't scroll? e.g.</p>
  
  <pre><code>Update 1
  </code></pre>
  
  <p>When Update 2 is received the print statement would update the output screen to:</p>
  
  <pre><code>Update 2
  </code></pre>
  
  <p>and so on...</p>
  
  <p>Thanks in advance for any pointers.</p>