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):
|
if (c - b == 0):
|
||||||
x = "0"
|
x = "0"
|
||||||
elif a == 1 or a == i:
|
elif a//i == 1:
|
||||||
x = f"{c - b}"
|
x = f"{(c - b)//i}"
|
||||||
|
|
||||||
problem = f"${a}x + {b} = {c}$"
|
problem = f"${a}x + {b} = {c}$"
|
||||||
solution = f"${x}$"
|
solution = f"${x}$"
|
||||||
|
|||||||
Reference in New Issue
Block a user