human
Check whether product of digits at even places of a number is divisible by K | below function checks whether product of digits at even places is divisible by K.
if position is even.
Driver code"
How can the above be solved in Python?

=====
Give me a code to check whether product of digits at even places of a number is divisible by K and the other steps required?
assistant
#Here is code to check whether product of digits at even places of a number is divisible by K and the other steps required.
 def productDivisible ( n , k ) :
	product = 1
	position = 1
	while n > 0 :
		if position % 2 == 0 :
			product *= n % 10
		n = n / 10
		position += 1
	if product % k == 0 :
		return True
	return False
n = 321922
k = 3
if productDivisible ( n , k ) == True :
	print ( " YES " )
else :
	print ( " NO " )