From 5baaa11ad6abe0babf6f995c34b7055ae2df8643 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Thu, 17 Dec 2020 19:05:38 -0500 Subject: [PATCH] lint fixes --- .../algebra/multiply_int_to_22_matrix.py | 20 +++++++++---------- test.py | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py b/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py index 4cc0d5b..5e4ba6b 100644 --- a/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py +++ b/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py @@ -15,18 +15,18 @@ def multiplyIntToMatrix22(maxMatrixVal=10, maxRes=100, style='raw'): d1 = d * constant if style == 'latex': - problem = ("\\(" + str(constant) + "\\cdot" + - "\\begin{bmatrix}" + - str(a) + "&" + str(b) + "\\\\" + - str(c) + "&" + str(d) + - "\end{bmatrix}=" + + problem = ("\\(" + str(constant) + "\\cdot" + "\\begin{bmatrix}" + "" + str(a) + "&" + str(b) + "\\\\" + "" + str(c) + "&" + str(d) + "" + "\end{bmatrix}=" "\\)" ) - solution = ("\\(" + - "\\begin{bmatrix}" + - str(a1) + "&" + str(b1) + "\\\\" + - str(c1) + "&" + str(d1) + - "\end{bmatrix}" + + solution = ("\\(" + "\\begin{bmatrix}" + "" + str(a1) + "&" + str(b1) + "\\\\" + "" + str(c1) + "&" + str(d1) + "" + "\end{bmatrix}" "\\)" ) else: diff --git a/test.py b/test.py index 1a538e2..3aec112 100644 --- a/test.py +++ b/test.py @@ -1,3 +1,3 @@ from mathgenerator import mathgen -print(mathgen.genById(17, style='latex')) +print(mathgen.genById(17, style='latex')[0])