Browse Source

refactoring: simplified by removing unnecessary variable

remotes/origin/feature/feature-read-math-functions
fdai7763 11 months ago
parent
commit
5c23ac8b9b
  1. 3
      src/main/py/read_math_function.py

3
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

Loading…
Cancel
Save