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.
If I do use below code , it is working like charm
if int(val1) == int(val2) :
print "what ever action it will do"
My question is if there is a different way to make that check? Is this an acceptable way to do that or not?