title: How can I solve equations in Python?
body: <p>Let's say I have an equation:</p>
  
  <p><code>2x + 6 = 12</code></p>
  
  <p>With algebra we can see that <code>x = 3</code>. How can I make a program in Python that can solve for <code>x</code>? I'm new to programming, and I looked at <code>eval()</code> and <code>exec()</code> but I can't figure out how to make them do what I want. I do not want to use external libraries (e.g. SAGE), I want to do this in just plain Python.</p>