This commit is contained in:
Luke Weiler
2025-06-23 21:15:13 -04:00
parent 82ff506c98
commit 59992e3a4b

View File

@@ -27,8 +27,8 @@ def basic_algebra(max_variable=10):
if (c - b == 0):
x = "0"
elif a == 1 or a == i:
x = f"{c - b}"
elif a//i == 1:
x = f"{(c - b)//i}"
problem = f"${a}x + {b} = {c}$"
solution = f"${x}$"