mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
linting improved
This commit is contained in:
@@ -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
|
problem = 'Find the sum of first ' + str(n) + ' terms of the AP series: ' + apString
|
||||||
solution = n * ((2 * a1) + ((n-1) * d)) / 2
|
solution = n * ((2 * a1) + ((n-1) * d)) / 2
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
Reference in New Issue
Block a user