title: Problems with python math
body: <p>I'm creating program which will teach my little brother math. But for example, when program is saying 2 + 2, and I enter 4 it's saying "Incorrect!". What am I doing wrong?</p>
  
  <pre><code>import random
  import math
  
  def addition():
      num1 = random.randint(1, 100)
      num2 = random.randint(1, 100)
      result = num1 + num2
      guess = input(str(num1) + " + " + str(num2) + " = ")#this is the line with problem
      if guess == result:
          print("Correct!")
      if guess != result:
          print("Incorrect!")
  addition()
  </code></pre>