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/regularPolygonAngleFunc.py
Normal file
10
mathgenerator/funcs/regularPolygonAngleFunc.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from .__init__ import *
|
||||
|
||||
|
||||
def regularPolygonAngleFunc(minVal=3, maxVal=20):
|
||||
sideNum = random.randint(minVal, maxVal)
|
||||
problem = f"Find the angle of a regular polygon with {sideNum} sides"
|
||||
|
||||
exteriorAngle = round((360 / sideNum), 2)
|
||||
solution = 180 - exteriorAngle
|
||||
return problem, solution
|
||||
Reference in New Issue
Block a user