Files
mathgenerator/mathgenerator/funcs/squareRootFunc.py
2020-10-19 13:54:31 -04:00

11 lines
206 B
Python

from .__init__ import *
def squareRootFunc(minNo=1, maxNo=12):
b = random.randint(minNo, maxNo)
a = b * b
problem = "sqrt(" + str(a) + ")="
solution = str(b)
return problem, solution