diff --git a/mathgenerator/funcs/quotientofpowersamebase.py b/mathgenerator/funcs/quotientofpowersamebase.py index 0e0fdf6..546b205 100644 --- a/mathgenerator/funcs/quotientofpowersamebase.py +++ b/mathgenerator/funcs/quotientofpowersamebase.py @@ -18,4 +18,4 @@ def quotientofpowersamebaseFunc(maxBase=50, maxPower=10): quotientOfPowerSameBase = Generator("Quotient of Powers with Same Base", 82, - "6^4 / 6^2 = 6^(4-2) = 6^2", "36", quotientofpowersamebaseFunc) + "6^4 / 6^2 = 6^(4-2) = 6^2", "36", quotientofpowersamebaseFunc) diff --git a/mathgenerator/funcs/quotientofpowersamepower.py b/mathgenerator/funcs/quotientofpowersamepower.py index b7dd980..2fabaa0 100644 --- a/mathgenerator/funcs/quotientofpowersamepower.py +++ b/mathgenerator/funcs/quotientofpowersamepower.py @@ -6,16 +6,16 @@ def quotientofpowersamepowerFunc(maxBase=50, maxPower=10): base1 = random.randint(1, maxBase) base2 = random.randint(1, maxBase) power = random.randint(1, maxPower) - step = base1/base2 + step = base1 / base2 problem = "The Quotient of {base1}^{power} and {base2}^{power} = " \ "({base1}/{base2})^{power} = {step}^{power}".format(base1=base1, base2=base2, power=power, step=step) - solution = str(step**power) + solution = str(step ** power) return problem, solution quotientOfPowerSamePower = Generator("Quotient of Powers with Same Power", 83, - "6^4 / 3^4 = (6/3)^4 = 2^4", "16", quotientofpowersamepowerFunc) + "6^4 / 3^4 = (6/3)^4 = 2^4", "16", quotientofpowersamepowerFunc)