From 00feedfc8ed38e14a319d391801bc6c2b4ba46bf Mon Sep 17 00:00:00 2001 From: Egor Kostan Date: Thu, 2 Oct 2025 18:13:16 -0700 Subject: [PATCH] Update wordy.py --- wordy/wordy.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wordy/wordy.py b/wordy/wordy.py index 115790a..42704ac 100644 --- a/wordy/wordy.py +++ b/wordy/wordy.py @@ -72,10 +72,7 @@ def _math_operation(result: int, question: list[str]) -> tuple[int, list[str]]: """ math_operator: str = question[0] # if the question contains an unknown operation. - if ( - math_operator not in STR_TO_OPERATOR - and not math_operator.isdigit() - ): + if math_operator not in STR_TO_OPERATOR and not math_operator.isdigit(): raise ValueError("unknown operation") # if the question is malformed or invalid. if math_operator.isdigit():