title: How do I add two variables together that have decimal values?
body: <p>I'm new to python and have created a Binary addition program that adds 2 binary numbers together and when I have converted the 2 numbers I have stored the decimal value into the variable Decimal and Decimal2.
  How do I add these together??</p>
  
  <p>I've tried:</p>
  
  <pre><code>sum = decimal+decimal2
  print(sum)
  
  add = sum(decimal+decimal2)
  print(add)
  </code></pre>
  
  <p>These don't cause any errors but give me completely random answers... eg. 1010 (10) + 1111 (15) = 14.. Thanks </p>