mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Update mathgen.py
This commit is contained in:
@@ -276,6 +276,13 @@ def factoringFunc(range_x1 = 10, range_x2 = 10):
|
|||||||
solution = f"(x{x1})(x{x2})"
|
solution = f"(x{x1})(x{x2})"
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
def thirdAngleOfTriangle(maxAngle=180):
|
||||||
|
angle1 = random.randint(1, maxAngle)
|
||||||
|
x1 = random.randint(1, maxAngle)
|
||||||
|
angle3 = 180 - (angle1 + angle2)
|
||||||
|
problem = "Third angle = "
|
||||||
|
|
||||||
|
|
||||||
# || Class Instances
|
# || Class Instances
|
||||||
|
|
||||||
#Format is:
|
#Format is:
|
||||||
|
|||||||
Reference in New Issue
Block a user