human
Sum of all palindrome numbers present in an Array | Function to reverse a number n.
Function to check if a number n is palindrome.
If n is equal to the reverse of n it is a palindrome.
Function to calculate sum of all array elements which are palindrome.
summation of all palindrome numbers present in array.
Driver Code"
How can the above be solved in Python?

Give me a code to sum of all palindrome numbers present in an Array and the other steps required?
assistant
#Here is code to sum of all palindrome numbers present in an Array and the other steps required.
 def reverse ( n ) :
	d = 0 ; s = 0 ;
	while ( n > 0 ) :
		d = n % 10 ;
		s = s * 10 + d ;
		n = n // 10 ;
	return s ;
def isPalin ( n ) :
	return n == reverse ( n ) ;
def sumOfArray ( arr , n ) :
	s = 0 ;
	for i in range ( n ) :
		if ( ( arr [ i ] > 10 ) and isPalin ( arr [ i ] ) ) :
			s += arr [ i ] ;
	return s ;
if __name__ == " _ _ main _ _ " :
	n = 6 ;
	arr = [ 12 , 313 , 11 , 44 , 9 , 1 ] ;
	print ( sumOfArray ( arr , n ) ) ;