mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Fix #428
This commit is contained in:
@@ -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}$"
|
||||
|
||||
Reference in New Issue
Block a user