From 73b87dda28c31dd6782047ecb56bddc74e08ebe5 Mon Sep 17 00:00:00 2001 From: Egor Kostan Date: Tue, 29 Oct 2024 21:03:11 -0700 Subject: [PATCH] Update evaluate.py --- kyu_2/evaluate_mathematical_expression/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyu_2/evaluate_mathematical_expression/evaluate.py b/kyu_2/evaluate_mathematical_expression/evaluate.py index 87ee10e9781..dd4160ac220 100644 --- a/kyu_2/evaluate_mathematical_expression/evaluate.py +++ b/kyu_2/evaluate_mathematical_expression/evaluate.py @@ -154,7 +154,7 @@ def calc(string: str) -> float: string = ' '.join(strings) string = ''.join(string.split('+')) - strings: list = string.split() + strings = string.split() string = process_brackets(strings) string = process_duplicate_minus(string) string = process_math_expression(string, ['*', '/'])