mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
added function
This commit is contained in:
@@ -387,6 +387,13 @@ def primeFactors(minVal=1, maxVal=200):
|
|||||||
solution = f"{factors}"
|
solution = f"{factors}"
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
def regularPolygonAngle(minVal = 3,maxVal = 20):
|
||||||
|
sideNum = random.randint(minVal, maxVal)
|
||||||
|
problem = f"Find the angle of a regular polygon with {sideNum} sides"
|
||||||
|
exteriorAngle = (360/sideNum)
|
||||||
|
solution = 180 - exteriorAngle
|
||||||
|
return problem, solution
|
||||||
|
|
||||||
# || Class Instances
|
# || Class Instances
|
||||||
|
|
||||||
#Format is:
|
#Format is:
|
||||||
|
|||||||
Reference in New Issue
Block a user