Files
mathgenerator/mathgenerator/funcs/decimalToOctalFunc.py
2020-10-19 16:06:44 -04:00

9 lines
220 B
Python

from .__init__ import *
def decimalToOctalFunc(maxDecimal=4096):
x = random.randint(0, maxDecimal)
problem = "The decimal number " + str(x) + " in Octal is: "
solution = oct(x)
return problem, solution