fixed problem sentence structure

This commit is contained in:
jsun1590
2021-10-10 16:40:57 +08:00
parent f820ea9435
commit 11c3215a3d

View File

@@ -12,7 +12,7 @@ def gen_func(minExpVal=-100, maxExpVal=100, format='string'):
if format == 'string': if format == 'string':
problem = "Product of scientific notations: " + \ problem = "Product of scientific notations: " + \
str(a[0])+"x10^"+str(a[1]) + " " + str(b[0])+"x10^"+str(b[1]) + " = " str(a[0])+"x10^"+str(a[1]) + " and " + str(b[0])+"x10^"+str(b[1]) + " = "
solution = str(round(c[0], 2))+"x10^"+str(c[1]) solution = str(round(c[0], 2))+"x10^"+str(c[1])
return problem, solution return problem, solution
elif format == 'latex': elif format == 'latex':