human
Program for sum of arithmetic series | Function to find sum of series ..
Driver function"
Solution in Python:

What is a code to program for sum of arithmetic series and the other steps required?
assistant
#Here is code to program for sum of arithmetic series and the other steps required.
 def sumOfAP ( a , d , n ) :
	sum = 0
	i = 0
	while i < n :
		sum = sum + a
		a = a + d
		i = i + 1
	return sum
n = 20
a = 2.5
d = 1.5
print ( sumOfAP ( a , d , n ) )