human
Product of N terms of a given Geometric series | Function to calculate product of geometric series.
Initialise final product with 1.
Multiply product with each term stored in a.
Return the final product.
Given first term and common ratio.
Number of terms.
Function Call"
Solution in Python:
assistant
#Here is code to product of N terms of a given Geometric series and the other steps required.
 def productOfGP ( a , r , n ) :
	product = 1 ;
	for i in range ( 0 , n ) :
		product = product * a ;
		a = a * r ;
	return product ;
a = 1
r = 2 ;
N = 4 ;
print ( productOfGP ( a , r , N ) )