From 5c23ac8b9ba5fa5375b254578bb36174201b2bd9 Mon Sep 17 00:00:00 2001 From: fdai7763 Date: Tue, 23 Jan 2024 21:16:09 +0100 Subject: [PATCH] refactoring: simplified by removing unnecessary variable --- src/main/py/read_math_function.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 7507e13..05f460d 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -9,8 +9,7 @@ def read_math_function(): type = input("Zur Zeit können nur Konstanten eingelesen werden. Bitte geben Sie den Typ ihrer Funktion ein:" ) if type != "x": function = input("Ihre Funktion: ") - simplified = simplify_constant(type, function) - return simplified + return simplify_constant(type, function) else: return False