human
Check whether sum of digits at odd places of a number is divisible by K | function that checks the divisibility of the sum of the digits at odd places of the given number.
if position is odd.
Driver code"
How can the above be solved in Python?

=====
Write me a code to check whether sum of digits at odd places of a number is divisible by K and the other steps required?
assistant
#Here is code to check whether sum of digits at odd places of a number is divisible by K and the other steps required.
 def SumDivisible ( n , k ) :
	sum = 0
	position = 1
	while ( n > 0 ) :
		if ( position % 2 == 1 ) :
			sum += n % 10
		n = n // 10
		position += 1
	if ( sum % k == 0 ) :
		return True
	return False
if __name__ == " _ _ main _ _ " :
	n = 592452
	k = 3
	if ( SumDivisible ( n , k ) ) :
		print ( " YES " )
	else :
		print ( " NO " )