mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
17 lines
490 B
Python
17 lines
490 B
Python
from .__init__ import *
|
|
from ..__init__ import Generator
|
|
|
|
|
|
def sumOfAnglesOfPolygonFunc(maxSides=12):
|
|
side = random.randint(3, maxSides)
|
|
sum = (side - 2) * 180
|
|
|
|
problem = f"Sum of angles of polygon with {side} sides = "
|
|
solution = sum
|
|
return problem, solution
|
|
|
|
|
|
sumOfAnglesOfPolygon = Generator("Sum of Angles of Polygon", 58,
|
|
"Sum of angles of polygon with n sides = ",
|
|
"sum", sumOfAnglesOfPolygonFunc)
|