mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
14
mathgenerator/funcs/area.py
Normal file
14
mathgenerator/funcs/area.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
from .__init__ import *
|
||||||
|
|
||||||
|
|
||||||
|
def areaCircle(maxRadius=100):
|
||||||
|
r = random.randint(0, maxRadius)
|
||||||
|
pi = 22/7
|
||||||
|
area = pi*r*r
|
||||||
|
problem = f"Area of circle with radius {r}"
|
||||||
|
solution = area
|
||||||
|
return problem, solution
|
||||||
|
|
||||||
|
|
||||||
|
areaCircle = Generator("Area", 63, "pi*r*r=", "area", areaCircle)
|
||||||
Reference in New Issue
Block a user