renamed main generator funcs to gen_func

This commit is contained in:
lukew3
2021-10-07 00:14:39 -04:00
parent 8de110346d
commit 3d3cc2dcc6
114 changed files with 363 additions and 363 deletions

View File

@@ -1,7 +1,7 @@
from .__init__ import *
def main(maxA=100, maxB=100, format='string'):
def gen_func(maxA=100, maxB=100, format='string'):
a = random.randint(-1 * maxA, maxA)
b = random.randint(-1 * maxB, maxB)
absDiff = abs(a - b)
@@ -15,4 +15,4 @@ def main(maxA=100, maxB=100, format='string'):
absolute_difference = Generator("Absolute difference between two numbers", 71,
main, ["maxA=100", "maxB=100"])
gen_func, ["maxA=100", "maxB=100"])