title: Why is this bounce counter not updating and creating an infinite loop?
body: <p>The bounce counter is not updating and in turn the bounce height is not updating. This is leading to an infinite while loop</p>
  <pre><code>def bounce_counter (drop_height, minimum_height, energy_loss):
      bounce = 0
      bounce_height = drop_height*(energy_loss**bounce)
      number_of_bounces = bounce - 1
      while bounce_height &gt; minimum_height:
          bounce = bounce + 1
  </code></pre>
  <p>My inputs are all floated numbers and if I set the initial drop height less than the minimum height then an else statement breaks the loop immediately.</p>