human
What is a code to program for sum of arithmetic series and the other steps required given the following:
Program for sum of arithmetic series | Python3 Efficient solution to find sum of arithmetic series ..
Driver code"
Solution in Python:
assistant
#Here is code to program for sum of arithmetic series and the other steps required.
 def sumOfAP ( a , d , n ) :
	sum = ( n / 2 ) * ( 2 * a + ( n - 1 ) * d )
	return sum
n = 20
a = 2.5
d = 1.5
print ( sumOfAP ( a , d , n ) )