title: im learning programming on my own and this code is not printing "correct"
body: <p>I want the user to put two numbers and put the answer and the software to print correct if he had the right answer but it keeps printing <code>wrong</code></p>
  
  <pre class="lang-py prettyprint-override"><code>x = input("num1: ")
  y = input("num2: ")
  z = input ("num1 + num2: ")
  
  results = float(x) + float(y)
  if z == results:
      print("correct")
  else :
      print("wrong")
  </code></pre>