This commit is contained in:
lukew3
2020-12-17 21:06:22 -05:00
parent 28e212f969
commit 1a449f80d1

View File

@@ -4,7 +4,7 @@ from .__init__ import *
def squareFunc(maxSquareNum=20, style='raw'):
a = random.randint(1, maxSquareNum)
b = a * a
if style == 'latex':
problem = "\\(" + str(a) + "^{2}=\\)"
solution = "\\(" + str(b) + "\\)"