input: Write a python function to check if a number is a palindrome.
  assert isPalindrome(121) == True
  assert isPalindrome(123) == False
  assert isPalindrome(1221) == True
  assert isPalindrome(10) == False
output: def isPalindrome(num):
      return str(num) == str(num)[::-1]