mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
subtractionFunc naming error
This commit is contained in:
@@ -27,7 +27,7 @@ def additionFunc(maxSum = 99, maxAddend = 50):
|
||||
solution = str(c)
|
||||
return problem, solution
|
||||
|
||||
def subtraction(maxMinuend = 99, maxDiff = 99):
|
||||
def subtractionFunc(maxMinuend = 99, maxDiff = 99):
|
||||
a = random.randint(0, maxMinuend)
|
||||
b = random.randint(max(0, (a-maxDiff)), a)
|
||||
c = a-b
|
||||
|
||||
Reference in New Issue
Block a user