human
To check a number is palindrome or not without using any extra space | Function to check if given number is palindrome or not without using the extra space.
Find the appropriate divisor to extract the leading digit.
If first and last digit not same return false.
Removing the leading and trailing digit from number.
Reducing divisor by a factor of 2 as 2 digits are dropped.
Driver code"
Solution in Python:

=====
What is a code to to check a number is palindrome or not without using any extra space and the other steps required?
assistant
#Here is code to to check a number is palindrome or not without using any extra space and the other steps required.
 def isPalindrome ( n ) :
	divisor = 1
	while ( n / divisor >= 10 ) :
		divisor *= 10
	while ( n != 0 ) :
		leading = n // divisor
		trailing = n % 10
		if ( leading != trailing ) :
			return False
		n = ( n % divisor ) // 10
		divisor = divisor / 100
	return True
if ( isPalindrome ( 1001 ) ) :
	print ( ' Yes , ▁ it ▁ is ▁ palindrome ' )
else :
	print ( ' No , ▁ not ▁ palindrome ' )