human
Program to find the product of ASCII values of characters in a string | Function to find product of ASCII value of characters in string.
Traverse string to find the product.
Return the product.
Driver code"
How can the above be solved in Python?
 Can you provide a code to program to find the product of ASCII values of characters in a string and the other steps required?
assistant
#Here is code to program to find the product of ASCII values of characters in a string and the other steps required.
 def productAscii ( str ) :
	prod = 1
	for i in range ( 0 , len ( str ) ) :
		prod = prod * ord ( str [ i ] )
	return prod
if __name__ == ' _ _ main _ _ ' :
	str = " GfG "
	print ( productAscii ( str ) )