Skip to content

Commit 00feedf

Browse files
committed
Update wordy.py
1 parent 68202eb commit 00feedf

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

wordy/wordy.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ def _math_operation(result: int, question: list[str]) -> tuple[int, list[str]]:
7272
"""
7373
math_operator: str = question[0]
7474
# if the question contains an unknown operation.
75-
if (
76-
math_operator not in STR_TO_OPERATOR
77-
and not math_operator.isdigit()
78-
):
75+
if math_operator not in STR_TO_OPERATOR and not math_operator.isdigit():
7976
raise ValueError("unknown operation")
8077
# if the question is malformed or invalid.
8178
if math_operator.isdigit():

0 commit comments

Comments
 (0)