def diff_string(old, new):
 diff = abs((old - new))
 diff_str = ('%s%s' % (CMPS[cmp(old, new)], ((diff and ('%.2f' % diff)) or '')))
 return diff_str

def diff_string ( old , new ) : diff = abs ( ( old - new ) ) diff_str = ( '%s%s' % ( CMPS [ cmp ( old , new ) ] , ( ( diff and ( '%.2f' % diff ) ) or '' ) ) ) return diff_str
given a old and new int value .