mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
11 lines
203 B
Python
11 lines
203 B
Python
from .__init__ import *
|
|
|
|
|
|
def squareFunc(maxSquareNum=20):
|
|
a = random.randint(1, maxSquareNum)
|
|
b = a * a
|
|
|
|
problem = str(a) + "^2" + "="
|
|
solution = str(b)
|
|
return problem, solution
|