mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Update decimalToOctalFunc.py
This commit is contained in:
@@ -6,3 +6,6 @@ def decimalToOctalFunc(maxDecimal=4096):
|
|||||||
problem = "The decimal number " + str(x) + " in Octal is: "
|
problem = "The decimal number " + str(x) + " in Octal is: "
|
||||||
solution = oct(x)
|
solution = oct(x)
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
|
||||||
|
decimalToOctal = Generator("Converts decimal to octal", 82, "What's the octal representation of 98?", "0o142", decimalToOctalFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user