title: Why does my brute force algebra solver not work?
body: <p>CODE:</p>
  <pre><code>x = -100
  
  while x &lt; 100:
      if 4*x == 2*x+4:
          print(x)
      x += 0.01
  </code></pre>
  <p>What it's supposed to do is print x when it equals the other side of the equation. Basically it does algebra problems for me.</p>
  <p>The weird part is it works just fine with <code>x += 1</code>. Problem is, not all algebra problems answers are integer answers. It also works with <code>x += 0.5</code>. It seems that if it's lower than 0.5 it just doesn't print out x and just does the whole &quot;Press any key to continue&quot; thing.</p>
  <p>Python 3.7.8</p>