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