mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
10 lines
249 B
Python
10 lines
249 B
Python
from .__init__ import *
|
|
|
|
|
|
def surfaceAreaCube(maxSide=20, unit='m'):
|
|
a = random.randint(1, maxSide)
|
|
problem = f"Surface area of cube with side = {a}{unit} is"
|
|
ans = 6 * a * a
|
|
solution = f"{ans} {unit}^2"
|
|
return problem, solution
|