This commit is contained in:
Swayam Gupta
2020-10-18 09:04:43 +05:30
6 changed files with 87 additions and 49 deletions

View File

@@ -78,7 +78,7 @@ def binaryComplement1sFunc(maxDigits=10):
question += temp
answer += "0" if temp == "1" else "1"
problem = question
problem = question+"="
solution = answer
return problem, solution
@@ -142,7 +142,7 @@ def lcmFunc(maxVal=20):
while(y):
x, y = y, x % y
d = c // x
problem = f"LCM of {a} and {b} = "
problem = f"LCM of {a} and {b} ="
solution = str(d)
return problem, solution