For python 3 : try this for "/"


#1

use this:

int(int(a)/int(b)) 

rather than using int(a)//int(b)
this will take care of negative numbers