For the minimum difference , we can replace " + " in both the strings with the same char
if ( a [ i ] != ' + ' and b [ i ] != ' + ' and a [ i ] != b [ i ] ) : NEW_LINE INDENT min += 1 NEW_LINE DEDENT print ( min + max ) NEW_LINE