division int solution fix

This commit is contained in:
lukew3
2020-12-17 21:28:21 -05:00
parent e09f368c59
commit 9842169143

View File

@@ -7,7 +7,7 @@ def divisionToIntFunc(maxA=25, maxB=25, style='raw'):
divisor = a * b divisor = a * b
dividend = random.choice([a, b]) dividend = random.choice([a, b])
quotient = divisor // dividend quotient = int(divisor / dividend)
if style == 'latex': if style == 'latex':
problem = "\\(" + str(divisor) + "\\div" + str(dividend) + "=\\)" problem = "\\(" + str(divisor) + "\\div" + str(dividend) + "=\\)"