def fix(s: str):
    return s.replace('<br>', '<br/>')


SQUARE_BRACKETS_WEIGHTS = {'[': -1, ']': 1}


def check_valid_square_brackets(v: str):
    count = 0
    for s in v:
        if s in SQUARE_BRACKETS_WEIGHTS:
            count += SQUARE_BRACKETS_WEIGHTS[s]
            if count > 0:
                return False
    return count == 0


def check_float_is_valid(str):
    try:
        float(str)
        return True
    except ValueError:
        return False

@@ -360,19 +360,19 @@
 s_valid(
-str
+val
 ):%0A    t
@@ -389,19 +389,19 @@
   float(
-str
+val
 )%0A      

fix var-name