title: Check if values are equal in Python IF statement
body: <p>I have 2 values , one of them is coming from a file and one of them is coming from database. Both values are numeric . My code is Python, 2.7 version. </p>
  
  <p>If I do use below code , it is working like charm </p>
  
  <pre><code>if int(val1) == int(val2) :
    print "what ever action it will do"
  </code></pre>
  
  <p>My question is if there is a different way to make that check? Is this an acceptable way to do that or not?</p>