Fix volume_pyramid generator description

This commit is contained in:
Nuclear03020704
2021-12-28 06:55:44 +07:00
parent f1de617f80
commit 5a73fd335c

View File

@@ -9,7 +9,7 @@ def gen_func(maxLength=20, maxWidth=20, maxHeight=50, unit='m', format='string')
ans = (l*w*h)/3 ans = (l*w*h)/3
if format == 'string': if format == 'string':
problem = f"Volume of cone with base length = {l} {unit}, base width = {w} {unit} and height = {h} {unit} is" problem = f"Volume of pyramid with base length = {l} {unit}, base width = {w} {unit} and height = {h} {unit} is"
solution = f"{ans} {unit}^3" solution = f"{ans} {unit}^3"
return problem, solution return problem, solution
elif format == 'latex': elif format == 'latex':