human
Check if a number is a Mystery Number | Finds reverse of given num x ..
if found print the pair , return"
How can the above be solved in Python?

=====
Give me a code to check if a number is a Mystery Number and the other steps required?
assistant
#Here is code to check if a number is a Mystery Number and the other steps required.
 def reverseNum ( x ) :
	s = str ( x )
	s = s [ : : - 1 ]
	return int ( s )
def isMysteryNumber ( n ) :
	for i in range ( 1 , n // 2 + 1 ) :
		j = reverseNum ( i )
		if i + j == n :
			print ( i , j )
			return True
	print ( " Not ▁ a ▁ Mystery ▁ Number " )
	return False
n = 121
isMysteryNumber ( n )