From 8a4036469269b6e7a4162bfdbd3f7a8e9604746f Mon Sep 17 00:00:00 2001 From: Luke Weiler Date: Mon, 19 Oct 2020 21:19:32 -0400 Subject: [PATCH] Update decimalToOctalFunc.py --- mathgenerator/funcs/decimalToOctalFunc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mathgenerator/funcs/decimalToOctalFunc.py b/mathgenerator/funcs/decimalToOctalFunc.py index 64bbae4..1f2cf6f 100644 --- a/mathgenerator/funcs/decimalToOctalFunc.py +++ b/mathgenerator/funcs/decimalToOctalFunc.py @@ -6,3 +6,6 @@ def decimalToOctalFunc(maxDecimal=4096): problem = "The decimal number " + str(x) + " in Octal is: " solution = oct(x) return problem, solution + + +decimalToOctal = Generator("Converts decimal to octal", 82, "What's the octal representation of 98?", "0o142", decimalToOctalFunc)