mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
11 lines
206 B
Python
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
|