From c5ede58ba7ddc25d6286f845d45640214222723a Mon Sep 17 00:00:00 2001 From: mushahidq Date: Thu, 15 Oct 2020 00:55:19 +0530 Subject: [PATCH] Fixed useless parameters on Multiplication --- mathgenerator/mathgen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mathgenerator/mathgen.py b/mathgenerator/mathgen.py index 79d5510..f3b61a6 100644 --- a/mathgenerator/mathgen.py +++ b/mathgenerator/mathgen.py @@ -44,6 +44,7 @@ def multiplicationFunc(maxRes = 99, maxMulti = 99): if(c%i == 0): #If the remainder is 0, the number is a factor d[j] = i #Store the factor j += 1 #Move to the next index + i += 1 #Next number a = random.randint(0, c) #Generate a multiplicant b = c/a #Find the other multiplicant problem = str(a) + "*" + str(b) + "="