diff --git a/calculator/operators.py b/calculator/operators.py index 8da0d85ed561f26108755cd1b3709280f3cee336..71135dd93c54fdfef58246a87825b59a783d54fe 100644 --- a/calculator/operators.py +++ b/calculator/operators.py @@ -1,6 +1,8 @@ """ Operator module contains the Operator class and a list of standard operators. """ + + class Operator: """ Operator class is a binary operator with a symbol, a precedence and an evaluation function. @@ -21,6 +23,6 @@ class Operator: STANDARD_OPERATORS = { '+': Operator('+', 1, lambda a, b: a + b), '-': Operator('-', 1, lambda a, b: a - b), - '*': Operator('×', 2, lambda a, b: a * b), + '*': Operator('*', 2, lambda a, b: a * b), '/': Operator('/', 2, lambda a, b: a / b), }