mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Fixed lint issues
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user