added function

This commit is contained in:
Yash
2020-10-16 21:17:54 +05:30
parent c0f2c9b281
commit 7c352da6a2

View File

@@ -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: