For this Question: Given a number N, you need to check whether the given number is <b>Palindrome</b> or not. A number is said to be Palindrome when it reads the same from backward as forward.User task:
Since this is a functional problem you don't have to worry about the input. You just have to complete the function <b>isPalindrome()</b> which contains N as a parameter.

<b>Constraints:</b>
1 <= N <= 9999You need to return "True" is the number is palindrome otherwise "False".Sample Input:
5

Sample Output:
True

Sample Input:
121

Sample Output:
True, I have written this Solution Code: def isPalindrome(N):
    res = str(N) == str(N)[::-1] 
    return res, In this Programming Language: Python, Now tell me if this Code is compilable or not?