human
Check if a number with even number of digits is palindrome or not | Function to check if the number is palindrome.
if divisible by 11 then return True.
if not divisible by 11 then return False.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to check if a number with even number of digits is palindrome or not and the other steps required.
 def isPalindrome ( n ) :
	if n % 11 == 0 :
		return True
	return False
if __name__ == " _ _ main _ _ " :
	n = 123321
	if isPalindrome ( n ) :
		print ( " Palindrome " )
	else :
		print ( " Not ▁ Palindrome " )