title: how to update lines on python
body: <p>I'm practicing OOP on Python, but i would like to create a &quot;loading screen&quot; on python whichs prints:</p>
  <pre><code>&gt;&gt;&gt;0%
  &gt;&gt;&gt;(_|_|_|_|_|_|_|_|_|_)
  &gt;&gt;&gt;Adding Oxygen...
  
  #delete the last 3 lines and print*:
  
  &gt;&gt;&gt;1%
  &gt;&gt;&gt;(_|_|_|_|_|_|_|_|_|_)
  &gt;&gt;&gt;Adding Oxygen...
  
  #delete the last 3 lines and print:
  
  &gt;&gt;&gt;2%
  &gt;&gt;&gt;(_|_|_|_|_|_|_|_|_|_)
  &gt;&gt;&gt;Adding Oxygen...
  
  #repeat this until oxygen == 100% print:
  
  &gt;&gt;&gt;100%
  &gt;&gt;&gt;(■|■|■|■|■|■|■|■|■|■)
  &gt;&gt;&gt;Adding Oxygen...
  </code></pre>
  <p>Instead of:</p>
  <pre><code>0%
  Adding oxygen...
  1%
  Adding oxygen...
  2%
  Adding oxygen...
  3%
  Adding oxygen...
  4%
  Adding oxygen...
  5%
  Adding oxygen...
  6%
  Adding oxygen...
  7%
  Adding oxygen...
  8%
  Adding oxygen...
  9%
  Adding oxygen...
  (■|_|_|_|_|_|_|_|_|_)
  10%
  </code></pre>
  <p>I tried to do this using <strong>&quot;\r&quot;</strong> but this deletes only the previous line and it doesn't work with this
  Should I use any kind of GUI library to make this posible?</p>
  <p>What is the way to do this?</p>