human
Write me a code to check whether product of ' n ' numbers is even or odd and the other steps required given the following:
Check whether product of ' n ' numbers is even or odd | function to check whether product of ' n ' numbers is even or odd.
if a single even number is found , then final product will be an even number.
product is an odd number.
Driver Code"
Solution in Python:
assistant
#Here is code to check whether product of ' n ' numbers is even or odd and the other steps required.
 def isProductEven ( arr , n ) :
	for i in range ( 0 , n ) :
		if ( ( arr [ i ] & 1 ) == 0 ) :
			return True
	return False
arr = [ 2 , 4 , 3 , 5 ]
n = len ( arr )
if ( isProductEven ( arr , n ) ) :
	print ( " Even " )
else :
	print ( " Odd " )