mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
complete restructure of the project. minor tweaks
This commit is contained in:
10
mathgenerator/funcs/squareRootFunc.py
Normal file
10
mathgenerator/funcs/squareRootFunc.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user