updated repo

This commit is contained in:
Metropass
2020-10-20 13:21:16 -04:00
parent dc02bde747
commit 38b0e428ab

View File

@@ -0,0 +1,14 @@
from .__init__ import *
from ..__init__ import Generator
def perimeterOfPolygonFunc(maxSides=12, maxLength=120)->"cm":
size_of_sides = random.randint(3,maxSides)
sides = []
for x in range(size_of_sides):
sides.append(random.randint(1,maxLength))
problem = "The perimeter of a " + str(size_of_sides) + " sided polygon with lengths of " + str(sides) + "cm is: "
solution = 0
for y in range(len(sides)):
solution += sides[y]
return problem, solution