human
Find the sum of digits of a number at even and odd places | Function to return the reverse of a number.
Function to find the sum of the odd and even positioned digits in a number.
If c is even number then it means digit extracted is at even place.
Driver code"
Solution in Python:

=====
What is a code to find the sum of digits of a number at even and odd places and the other steps required?
assistant
#Here is code to find the sum of digits of a number at even and odd places and the other steps required.
 def reverse ( n ) :
	rev = 0
	while ( n != 0 ) :
		rev = ( rev * 10 ) + ( n % 10 )
		n //= 10
	return rev
def getSum ( n ) :
	n = reverse ( n )
	sumOdd = 0
	sumEven = 0
	c = 1
	while ( n != 0 ) :
		if ( c % 2 == 0 ) :
			sumEven += n % 10
		else :
			sumOdd += n % 10
		n //= 10
		c += 1
	print ( " Sum ▁ odd ▁ = " , sumOdd )
	print ( " Sum ▁ even ▁ = " , sumEven )
n = 457892
getSum ( n )