mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
pep8 fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from .__init__ import *
|
||||
from .__init__ import *
|
||||
|
||||
|
||||
def profitLossPercentFunc(maxCP = 1000, maxSP = 1000):
|
||||
def profitLossPercentFunc(maxCP=1000, maxSP=1000):
|
||||
cP = random.randint(1, maxCP)
|
||||
sP = random.randint(1, maxSP)
|
||||
diff = abs(sP-cP)
|
||||
@@ -12,5 +12,5 @@ def profitLossPercentFunc(maxCP = 1000, maxSP = 1000):
|
||||
percent = diff/cP * 100
|
||||
problem = f"{profitOrLoss} percent when CP = {cP} and SP = {sP} is: "
|
||||
solution = percent
|
||||
|
||||
return problem, solution
|
||||
|
||||
return problem, solution
|
||||
|
||||
Reference in New Issue
Block a user