mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
lint fixes
This commit is contained in:
@@ -22,8 +22,8 @@ def divideFractionsFunc(maxVal=10, style='raw'):
|
|||||||
tmp_d = b * c
|
tmp_d = b * c
|
||||||
|
|
||||||
gcd = calculate_gcd(tmp_n, tmp_d)
|
gcd = calculate_gcd(tmp_n, tmp_d)
|
||||||
sol_numerator = tmp_n//gcd
|
sol_numerator = tmp_n // gcd
|
||||||
sol_denominator = tmp_d//gcd
|
sol_denominator = tmp_d // gcd
|
||||||
x = f"{sol_numerator}/{sol_denominator}"
|
x = f"{sol_numerator}/{sol_denominator}"
|
||||||
|
|
||||||
if (tmp_d == 1 or tmp_d == gcd):
|
if (tmp_d == 1 or tmp_d == gcd):
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ def multiplicationFunc(maxRes=99, maxMulti=99, style='raw'):
|
|||||||
c = a * b
|
c = a * b
|
||||||
|
|
||||||
if style == 'latex':
|
if style == 'latex':
|
||||||
problem = "\\(" + str(a) + "\cdot" + str(b) + "=\\)"
|
problem = "\\(" + str(a) + "\\cdot" + str(b) + "=\\)"
|
||||||
solution = "\\(" + str(c) + "\\)"
|
solution = "\\(" + str(c) + "\\)"
|
||||||
else:
|
else:
|
||||||
problem = str(a) + "*" + str(b) + "="
|
problem = str(a) + "*" + str(b) + "="
|
||||||
|
|||||||
Reference in New Issue
Block a user