mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
pep8 fixes
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
from .__init__ import *
|
||||
from .__init__ import *
|
||||
|
||||
def absoluteDifferenceFunc (maxA = 100, maxB = 100):
|
||||
a = random.randint(-1*maxA, maxA)
|
||||
b = random.randint(-1*maxB, maxB)
|
||||
absDiff = abs(a-b)
|
||||
|
||||
problem = "Absolute difference between numbers " + str(a) + " and " + str(b) + " = "
|
||||
solution = absDiff
|
||||
return problem, solution
|
||||
def absoluteDifferenceFunc(maxA=100, maxB=100):
|
||||
a = random.randint(-1*maxA, maxA)
|
||||
b = random.randint(-1*maxB, maxB)
|
||||
absDiff = abs(a-b)
|
||||
|
||||
problem = "Absolute difference between numbers " + \
|
||||
str(a) + " and " + str(b) + " = "
|
||||
solution = absDiff
|
||||
return problem, solution
|
||||
|
||||
Reference in New Issue
Block a user