From 9a27fcd700e314a3d6bbe8202891565b7db3a0d4 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Wed, 21 Oct 2020 14:06:31 -0400 Subject: [PATCH] linter fix --- mathgenerator/funcs/bcd_to_decimal.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mathgenerator/funcs/bcd_to_decimal.py b/mathgenerator/funcs/bcd_to_decimal.py index 33c0737..fc356d0 100644 --- a/mathgenerator/funcs/bcd_to_decimal.py +++ b/mathgenerator/funcs/bcd_to_decimal.py @@ -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)