linting improved

This commit is contained in:
Anshita
2020-10-20 00:51:54 +05:30
parent ddc42a5638
commit da48b28397
3 changed files with 20 additions and 19 deletions

View File

@@ -11,3 +11,4 @@ def arithmeticProgressionSumFunc (maxd = 100, maxa = 100, maxn = 100):
problem = 'Find the sum of first ' + str(n) + ' terms of the AP series: ' + apString
solution = n * ((2 * a1) + ((n-1) * d)) / 2
return problem, solution