Fixed lint issues

This commit is contained in:
Nitsujed
2020-10-21 10:44:18 -04:00
parent ddd23986db
commit 86750f5867
2 changed files with 4 additions and 4 deletions

View File

@@ -18,4 +18,4 @@ def quotientofpowersamebaseFunc(maxBase=50, maxPower=10):
quotientOfPowerSameBase = Generator("Quotient of Powers with Same Base", 82, 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)

View File

@@ -6,16 +6,16 @@ def quotientofpowersamepowerFunc(maxBase=50, maxPower=10):
base1 = random.randint(1, maxBase) base1 = random.randint(1, maxBase)
base2 = random.randint(1, maxBase) base2 = random.randint(1, maxBase)
power = random.randint(1, maxPower) power = random.randint(1, maxPower)
step = base1/base2 step = base1 / base2
problem = "The Quotient of {base1}^{power} and {base2}^{power} = " \ problem = "The Quotient of {base1}^{power} and {base2}^{power} = " \
"({base1}/{base2})^{power} = {step}^{power}".format(base1=base1, "({base1}/{base2})^{power} = {step}^{power}".format(base1=base1,
base2=base2, base2=base2,
power=power, power=power,
step=step) step=step)
solution = str(step**power) solution = str(step ** power)
return problem, solution return problem, solution
quotientOfPowerSamePower = Generator("Quotient of Powers with Same Power", 83, 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)