mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
linter fix
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from .__init__ import *
|
from .__init__ import *
|
||||||
|
|
||||||
|
|
||||||
def BCDtoDecimalFunc(maxNumber=10000):
|
def BCDtoDecimalFunc(maxNumber=10000):
|
||||||
n = random.randint(1000, maxNumber)
|
n = random.randint(1000, maxNumber)
|
||||||
binstring = ''
|
binstring = ''
|
||||||
@@ -18,4 +19,6 @@ def BCDtoDecimalFunc(maxNumber=10000):
|
|||||||
solution = int(binstring, 2)
|
solution = int(binstring, 2)
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
bcd_to_decimal = Generator("Binary Coded Decimal to Integer", 91, "Integer of Binary Coded Decimal b is ", "n", BCDtoDecimalFunc)
|
|
||||||
|
bcd_to_decimal = Generator("Binary Coded Decimal to Integer", 91,
|
||||||
|
"Integer of Binary Coded Decimal b is ", "n", BCDtoDecimalFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user