Write the code to find the palindrome using function?

n =input (“Enter any number :”)
val = int(num)
if num ==str(num) [:: - 1]:
print (“Given number is Palindrome”)
else:
print (“Given number is not Palindrome”)

@iqrarsheikh117

Correct. Keep it up.
Keep Practicing,keep learning.