Split AP into 2 funcs and reorganized

This commit is contained in:
Anshita
2020-10-20 00:44:41 +05:30
parent e122168468
commit ddc42a5638
4 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
from .__init__ import *
def arithmeticProgressionSumFunc (maxd = 100, maxa = 100, maxn = 100):
d = random.randint (-1 * maxd, maxd)
a1 = random.randint (-1 * maxa, maxa)