renamed modules and generators to fit pep8

This commit is contained in:
lukew3
2020-10-20 11:30:55 -04:00
parent 2ac4032b8a
commit cbede21ddf
90 changed files with 241 additions and 321 deletions

View File

@@ -0,0 +1,14 @@
from .__init__ import *
def divisionFunc(maxRes=99, maxDivid=99):
a = random.randint(0, maxDivid)
b = random.randint(0, min(maxRes, maxDivid))
c = a / b
problem = str(a) + "/" + str(b) + "="
solution = str(c)
return problem, solution
division = Generator("Division", 3, "a/b=", "c", divisionFunc)