human
Check if product of digits of a number at even and odd places is equal | Python3 implementation of the approach.
To store the respective product.
Converting integer to string.
Traversing the string.
Driver code"
How can the above be solved in Python?

Can you provide a code to check if product of digits of a number at even and odd places is equal and the other steps required?
assistant
#Here is code to check if product of digits of a number at even and odd places is equal and the other steps required.
 def getResult ( n ) :
	proOdd = 1
	proEven = 1
	num = str ( n )
	for i in range ( len ( num ) ) :
		if ( i % 2 == 0 ) :
			proOdd = proOdd * int ( num [ i ] )
		else :
			proEven = proEven * int ( num [ i ] )
	if ( proOdd == proEven ) :
		print ( " Yes " )
	else :
		print ( " No " )
if __name__ == " _ _ main _ _ " :
	n = 4324
	getResult ( n )