linter fix

This commit is contained in:
lukew3
2020-10-21 14:06:31 -04:00
parent 47966623cc
commit 9a27fcd700

View File

@@ -1,4 +1,5 @@
from .__init__ import *
from .__init__ import *
def BCDtoDecimalFunc(maxNumber=10000):
n = random.randint(1000, maxNumber)
@@ -13,9 +14,11 @@ def BCDtoDecimalFunc(maxNumber=10000):
break
else:
n = q
problem = "Integer of Binary Coded Decimal " + str(n) + " is = "
solution = int(binstring, 2)
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)