From 6ffe5698b480a554a9b8560232d9983bb8317376 Mon Sep 17 00:00:00 2001 From: Egor Kostan Date: Tue, 29 Oct 2024 21:04:47 -0700 Subject: [PATCH] Update evaluate.py --- kyu_2/evaluate_mathematical_expression/evaluate.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kyu_2/evaluate_mathematical_expression/evaluate.py b/kyu_2/evaluate_mathematical_expression/evaluate.py index dd4160ac220..6791ca9ec26 100644 --- a/kyu_2/evaluate_mathematical_expression/evaluate.py +++ b/kyu_2/evaluate_mathematical_expression/evaluate.py @@ -164,13 +164,13 @@ def calc(string: str) -> float: return float(string) -def check_conditions(strings, string, temp) -> (str, str): +def check_conditions(strings: list, string: str, temp: str) -> (str, str): """ - Checking conditions and normalizing string input - :param strings: - :param string: - :param temp: - :return: + Normalizing string input by checking conditions + :param strings: list + :param string: str + :param temp: str + :return: tuple(str, str) """ for i, s in enumerate(string): if s.isdigit():