diff --git a/mathgenerator/funcs/quotientofpowersamebase.py b/mathgenerator/funcs/quotient_of_power_same_base.py similarity index 80% rename from mathgenerator/funcs/quotientofpowersamebase.py rename to mathgenerator/funcs/quotient_of_power_same_base.py index 546b205..01c6dd0 100644 --- a/mathgenerator/funcs/quotientofpowersamebase.py +++ b/mathgenerator/funcs/quotient_of_power_same_base.py @@ -2,7 +2,7 @@ from .__init__ import * from ..__init__ import Generator -def quotientofpowersamebaseFunc(maxBase=50, maxPower=10): +def quotientOfPowerSameBaseFunc(maxBase=50, maxPower=10): base = random.randint(1, maxBase) power1 = random.randint(1, maxPower) power2 = random.randint(1, maxPower) @@ -17,5 +17,5 @@ def quotientofpowersamebaseFunc(maxBase=50, maxPower=10): return problem, solution -quotientOfPowerSameBase = Generator("Quotient of Powers with Same Base", 82, - "6^4 / 6^2 = 6^(4-2) = 6^2", "36", quotientofpowersamebaseFunc) +quotient_of_power_same_base = Generator("Quotient of Powers with Same Base", 82, + "6^4 / 6^2 = 6^(4-2) = 6^2", "36", quotientOfPowerSameBaseFunc()) diff --git a/mathgenerator/funcs/quotientofpowersamepower.py b/mathgenerator/funcs/quotient_of_power_same_power.py similarity index 72% rename from mathgenerator/funcs/quotientofpowersamepower.py rename to mathgenerator/funcs/quotient_of_power_same_power.py index 2fabaa0..d1383da 100644 --- a/mathgenerator/funcs/quotientofpowersamepower.py +++ b/mathgenerator/funcs/quotient_of_power_same_power.py @@ -2,7 +2,7 @@ from .__init__ import * from ..__init__ import Generator -def quotientofpowersamepowerFunc(maxBase=50, maxPower=10): +def quotientOfPowerSamePowerFunc(maxBase=50, maxPower=10): base1 = random.randint(1, maxBase) base2 = random.randint(1, maxBase) power = random.randint(1, maxPower) @@ -17,5 +17,5 @@ def quotientofpowersamepowerFunc(maxBase=50, maxPower=10): return problem, solution -quotientOfPowerSamePower = Generator("Quotient of Powers with Same Power", 83, - "6^4 / 3^4 = (6/3)^4 = 2^4", "16", quotientofpowersamepowerFunc) +quotient_of_power_same_power = Generator("Quotient of Powers with Same Power", 83, + "6^4 / 3^4 = (6/3)^4 = 2^4", "16", quotientOfPowerSamePowerFunc())