subtractionFunc naming error

This commit is contained in:
lukew3
2020-10-13 14:11:28 -04:00
parent 82ea6a429a
commit 4aa2e021b3
2 changed files with 2 additions and 2 deletions

View File

@@ -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