def precedence(self, x):
        if x in ("(", ")"):
            return 0
        if x in ("+", "-"):
            return 1
        if x in ("*", "/"):
            return 2
        return 3
dataset/ETHPy150Open algorhythms/LintCode/Convert Expression to Polish Notation.py/Solution.precedence/original